Skip to content

KVM: x86/pmu: Clean up arch/hw event handling

Sean Christopherson kvm lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: x86/pmu: Use enums instead of hardcoded magic for arch event indicesarch/x86/kvm/vmx/pmu_intel.c+43 -121 reply
2/4KVM: x86/pmu: Simplify intel_hw_event_available()arch/x86/kvm/vmx/pmu_intel.c+6 -70 replies
3/4KVM: x86/pmu: Require nr fixed_pmc_events to match nr max fixed countersarch/x86/kvm/vmx/pmu_intel.c+9 -100 replies
4/4KVM: x86/pmu: Move .hw_event_available() check out of PMC filter helperarch/x86/kvm/pmu.c+1 -32 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchLike Xu
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] KVM: x86/pmu: Clean up arch/hw event handling

Clean up KVM's handling of arch/hw events, and the related fixed counter usage. KVM has far too many open coded magic numbers, and kludgy code that stems from the magic numbers.

Sean Christopherson (4):
KVM: x86/pmu: Use enums instead of hardcoded magic for arch event
indices
KVM: x86/pmu: Simplify intel_hw_event_available()
KVM: x86/pmu: Require nr fixed_pmc_events to match nr max fixed
counters
KVM: x86/pmu: Move .hw_event_available() check out of PMC filter
helper

 arch/x86/kvm/pmu.c           |  4 +-
 arch/x86/kvm/vmx/pmu_intel.c | 81 ++++++++++++++++++++++++------------
 2 files changed, 56 insertions(+), 29 deletions(-)

base-commit: 31b4fc3bc64aadd660c5bfa5178c86a7ba61e0f7

Signature · 1 line
2.41.0.162.gfafddb0af9-goog