Skip to content

x86/pmu: PEBS fixes and new testcases

Sean Christopherson kvm 1 version Applied

Status from this message: Applied to kvm-x86 next. Dapeng, I didn't address your feedback about adding

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4x86/pmu: Enable PEBS on fixed counters iff baseline PEBS is supportx86/pmu_pebs.c+2 -21 reply
2/4x86/pmu: Iterate over adaptive PEBS flag combinationslib/x86/pmu.h x86/pmu_pebs.c+14 -120 replies
3/4x86/pmu: Test adaptive PEBS without any adaptive countersx86/pmu_pebs.c+38 -364 replies
4/4x86/pmu: Add a PEBS test to verify the host LBRs aren't leaked to the guestx86/pmu_pebs.c+13 -02 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchLike XuDapeng Mi
SeriesT-b
1/4R-b
2/4
3/4R-b R-b
4/4R-b R-b

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

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/4] x86/pmu: PEBS fixes and new testcases

One bug fix where pmu_pebs attempts to enable PEBS for fixed counter on CPUs without Extended PEBS, and two new testcases to verify adaptive PEBS functionality.

The new testcases are intended both to demonstrate that adaptive PEBS virtualization is currently broken, and to serve as a gatekeeper for re-enabling adapative PEBS in the future.

https://lore.kernel.org/all/[email protected]

Sean Christopherson (4):
x86/pmu: Enable PEBS on fixed counters iff baseline PEBS is support x86/pmu: Iterate over adaptive PEBS flag combinations x86/pmu: Test adaptive PEBS without any adaptive counters x86/pmu: Add a PEBS test to verify the host LBRs aren't leaked to the
guest

 lib/x86/pmu.h  |   6 ++-
 x86/pmu_pebs.c | 109 +++++++++++++++++++++++++++----------------------
 2 files changed, 66 insertions(+), 49 deletions(-)

base-commit: 55dd01b4f066577b49f03fb7146723c4a65822c4

Signature · 1 line
2.44.0.278.ge034bb2e1d-goog