summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-01-08 14:10:08 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-01-08 14:10:08 +0100
commit01edb1cfbdb984ebe7b490cce544e908c402e859 (patch)
tree009ffd0c9e2645a61773c90b4a36d9ebc44a767e /arch/x86/kvm/x86.c
parentMerge tag 'kvm-x86-misc-6.8' of https://github.com/kvm-x86/linux into HEAD (diff)
parentKVM: x86/pmu: Track emulated counter events instead of previous counter (diff)
downloadlinux-01edb1cfbdb984ebe7b490cce544e908c402e859.tar.xz
linux-01edb1cfbdb984ebe7b490cce544e908c402e859.zip
Merge tag 'kvm-x86-pmu-6.8' of https://github.com/kvm-x86/linux into HEAD
KVM x86 PMU changes for 6.8: - Fix a variety of bugs where KVM fail to stop/reset counters and other state prior to refreshing the vPMU model. - Fix a double-overflow PMU bug by tracking emulated counter events using a dedicated field instead of snapshotting the "previous" counter. If the hardware PMC count triggers overflow that is recognized in the same VM-Exit that KVM manually bumps an event count, KVM would pend PMIs for both the hardware-triggered overflow and for KVM-triggered overflow.
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 4f4248c2941a..242a8417ef22 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -12252,7 +12252,6 @@ void kvm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event)
}
if (!init_event) {
- kvm_pmu_reset(vcpu);
vcpu->arch.smbase = 0x30000;
vcpu->arch.msr_misc_features_enables = 0;