Skip to content

KVM: selftests: Add "instructions required" testcase

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. v4 Latest6 patches 2 repliesApplied

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/6KVM: selftests: Add a common helper for the PMU event filter guest codetools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c+18 -110 replies
2/6KVM: selftests: Add helpers for PMC asserts in PMU event filter testtools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c+27 -250 replies
3/6KVM: selftests: Print detailed info in PMU event filter assertstools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c+5 -60 replies
4/6KVM: selftests: Use error codes to signal errors in PMU event filter testtools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c+8 -80 replies
5/6KVM: selftests: Copy full counter values from guest in PMU event filter testtools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c+80 -900 replies
6/6KVM: selftests: Test the PMU event "Instructions retired"tools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c+32 -20 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/6] KVM: selftests: Add "instructions required" testcase

This is the selftests portion of Aaron's series[*] to fix incorrect "instructions required" counting. The big change from v3 is to use a common struct to copy counter values to/from the guest instead of smushing the values into a single 64-bit value.

[*] https://lkml.kernel.org/r/20230307141400.1486314-1-aaronlewis%40google.com

Aaron Lewis (4):
KVM: selftests: Add a common helper for the PMU event filter guest
code
KVM: selftests: Add helpers for PMC asserts in PMU event filter test
KVM: selftests: Print detailed info in PMU event filter asserts
KVM: selftests: Test the PMU event "Instructions retired"

Sean Christopherson (2):
KVM: selftests: Use error codes to signal errors in PMU event filter
test
KVM: selftests: Copy full counter values from guest in PMU event
filter test

 .../kvm/x86_64/pmu_event_filter_test.c        | 252 ++++++++++--------
 1 file changed, 140 insertions(+), 112 deletions(-)

base-commit: b821bf96cf3bed0c1c8d34659299a3a1dc47218d

Signature · 1 line
2.40.0.577.gac1e443424-goog