Skip to content

perf/x86/intel: KVM: PT intr handler fix and cleanup

Sean Christopherson kvm linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Register perf callbacks after calling vendor's hardware_setup()arch/x86/kvm/x86.c+4 -30 replies
2/3KVM: x86: Register Processor Trace interrupt hook iff PT enabled in guestarch/x86/include/asm/kvm_host.h arch/x86/kvm/pmu.h arch/x86/kvm/vmx/vmx.c +1 more+6 -15 replies
3/3perf/x86/intel: Fold current_vcpu check into KVM's PT intr handlerarch/x86/events/intel/core.c arch/x86/kvm/pmu.h arch/x86/kvm/x86.c +1 more+10 -70 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/3] perf/x86/intel: KVM: PT intr handler fix and cleanup

Patches 1 and 2 fix a bug where PT PMIs in guest are forwarded to KVM's PT intr handler even if PT is configured for system mode, i.e. when the host is the sole owner of PT.

Patch 3 is a related cleanup/optimization.

The PT specific stuff is effectively compile-tested only.

Sean Christopherson (3):
KVM: x86: Register perf callbacks after calling vendor's
hardware_setup()
KVM: x86: Register Processor Trace interrupt hook iff PT enabled in
guest
perf/x86/intel: Fold current_vcpu check into KVM's PT intr handler

 arch/x86/events/intel/core.c    |  7 +++----
 arch/x86/include/asm/kvm_host.h |  1 +
 arch/x86/kvm/pmu.h              |  1 +
 arch/x86/kvm/vmx/vmx.c          |  1 +
 arch/x86/kvm/x86.c              | 17 ++++++++++++-----
 include/linux/perf_event.h      |  2 +-
 6 files changed, 19 insertions(+), 10 deletions(-)
Signature · 1 line
2.33.0.rc2.250.ged5fa647cd-goog