diff options
| author | Yosry Ahmed <yosry@kernel.org> | 2026-05-27 23:47:02 +0000 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-05-27 18:45:49 -0700 |
| commit | 232eadc3110b6b00eda84fb8670ddb20a64e1726 (patch) | |
| tree | 1265505947b1f45d581ba851dc1923bf9e43c6a4 /tools/lib/python | |
| parent | e48810e06f45251a56bc007485854112e6cfc430 (diff) | |
KVM: x86/pmu: Check mediated PMU counter enablement before event filters
If the guest disables the counter (by clearing
ARCH_PERFMON_EVENTSEL_ENABLE), KVM still performs the PMU filter lookup,
even though it doesn't end up changing eventsel_hw. Check if the
counter is enabled by the guest before doing the potentially expensive
PMU filter lookup.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260527234711.4175166-9-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
