Skip to content

KVM: x86/pmu: Fix a fixed PMC event filter bypass bug

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 misc, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86/pmu: Use hardware value when reprogramming for FIXED_CTR_CTRL changesarch/x86/kvm/vmx/pmu_intel.c+9 -10 replies
2/2KVM: selftests: Add regression test for mediated PMU fixed counter filter bugtools/testing/selftests/kvm/x86/pmu_event_filter_test.c+6 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: x86/pmu: Fix a fixed PMC event filter bypass bug

Fix a bug reported by Sashiko, where KVM will effectively ignore PMU event filters for fixed counters if FIXED_CTR_CTRL is changing, but enable bits for denied counters are NOT changing.

Sean Christopherson (2):
KVM: x86/pmu: Use hardware value when reprogramming for FIXED_CTR_CTRL
changes
KVM: selftests: Add regression test for mediated PMU fixed counter
filter bug

 arch/x86/kvm/vmx/pmu_intel.c                           | 10 +++++++++-
 .../testing/selftests/kvm/x86/pmu_event_filter_test.c  |  6 ++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

base-commit: d4bfaa66fa171089b9b9fb2dc17af9245f2b9b34

Signature · 1 line
2.54.0.1032.g2f8565e1d1-goog