diff options
author | Like Xu <[email protected]> | 2023-04-04 15:17:59 +0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-04-05 16:33:10 -0700 |
commit | 7e768ce8278bafe43e2a4771a82b61856190a3fc (patch) | |
tree | 1e9e1aadaf35e5abd21be169900724e488035c42 /tools/perf/scripts/python/stackcollapse.py | |
parent | 12aad9164763bb4890277d3b2a4664f443a48e3f (diff) |
KVM: x86/pmu: Zero out pmu->all_valid_pmc_idx each time it's refreshed
The kvm_pmu_refresh() may be called repeatedly (e.g. configure guest
CPUID repeatedly or update MSR_IA32_PERF_CAPABILITIES) and each
call will use the last pmu->all_valid_pmc_idx value, with the residual
bits introducing additional overhead later in the vPMU emulation.
Fixes: b35e5548b411 ("KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC")
Suggested-by: Sean Christopherson <[email protected]>
Signed-off-by: Like Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions