KVM: x86/vPMU: reset pmc->counter to 0 for pmu fixed_counters
authorLike Xu <like.xu@linux.intel.com>
Wed, 17 Jul 2019 02:51:18 +0000 (10:51 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Jul 2019 10:23:20 +0000 (12:23 +0200)
commit4d1a082da968ff0c9d7b69a7ec44e6be6fc6e213
tree079aa0daaaaf32450418da87f729002342717ec4
parent6694e48012826351036fd10fc506ca880023e25f
KVM: x86/vPMU: reset pmc->counter to 0 for pmu fixed_counters

To avoid semantic inconsistency, the fixed_counters in Intel vPMU
need to be reset to 0 in intel_pmu_reset() as gp_counters does.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/pmu_intel.c