Skip to content

KVM: x86/pmu: Enable guest PEBS for SPR and later models

Like Xu kvm linux-perf-users lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/23 patches 0 repliesNew
  2. v3 posting 1/23 patches 9 repliesSuperseded

Changes in v3 from the cover letter

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86/pmu: Disable guest PEBS on hybird cpu due to heterogeneityarch/x86/kvm/vmx/capabilities.h+3 -10 replies
2/3KVM: x86/pmu: Add PRIR++ and PDist support for SPR and later modelsarch/x86/kvm/pmu.c+33 -120 replies
3/3perf/x86/intel: Expose EPT-friendly PEBS for SPR and future modelsarch/x86/events/intel/core.c arch/x86/events/intel/ds.c+4 -10 replies

Reviews trailers per patch

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

PatchKan LiangPeter Zijlstra (Intel)
1/3
2/3
3/3R-b A-b

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

Read the v3 thread

Cover letter [PATCH RESEND v3 0/3] KVM: x86/pmu: Enable guest PEBS for SPR and later models

Hi,

Finally, SPR will go live in early 2023. Virtualization support for SPR PEBS (kvm.x86.vpmu.pebs_ept) has officially available in the Intel SDM (June 2022), and this patch set is validated on a late stepping machine.

Let's see if this new rebased revision will satisfy everyone's appetite.

Previous:

V3:
https://lore.kernel.org/kvm/[email protected]/
V2:
https://lore.kernel.org/kvm/[email protected]/

V2 -> V3 Changelog:
- Add more commit message about the pdit/pdir stuff; (Sean)
- Refine confusing comments on event precise level and TNT+; (Sean)
- Use pmc_get_pebs_precise_level() instead of need_max_precise(); (Sean)
- Move HYBRID_CPU change in a separate patch; (Sean)
- Land KVM changes before perf core changes; (Sean)
- Aalign code indentation; (Sean) // VScode is quite good for kernel dev.

Like Xu (3):
KVM: x86/pmu: Disable guest PEBS on hybird cpu due to heterogeneity
KVM: x86/pmu: Add PRIR++ and PDist support for SPR and later models perf/x86/intel: Expose EPT-friendly PEBS for SPR and future models

 arch/x86/events/intel/core.c    |  1 +
 arch/x86/events/intel/ds.c      |  4 ++-
 arch/x86/kvm/pmu.c              | 45 ++++++++++++++++++++++++---------
 arch/x86/kvm/vmx/capabilities.h |  4 ++-
 4 files changed, 40 insertions(+), 14 deletions(-)
Signature · 1 line
2.38.1