Skip to content

KVM: selftests: Test the consistency of the PMU's CPUID and its features

Like Xu kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7KVM: selftests: Test Intel PMU architectural events on gp counterstools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/x86_64/pmu_cpuid_test.c+203 -02 replies
2/7KVM: selftests: Test Intel PMU architectural events on fixed counterstools/testing/selftests/kvm/x86_64/pmu_cpuid_test.c+33 -41 reply
3/7KVM: selftests: Test consistency of CPUID with num of GP counterstools/testing/selftests/kvm/x86_64/pmu_cpuid_test.c+102 -01 reply
4/7KVM: selftests: Test consistency of CPUID with num of Fixed counterstools/testing/selftests/kvm/x86_64/pmu_cpuid_test.c+68 -02 replies
5/7KVM: selftests: Test Intel supported fixed counters bit masktools/testing/selftests/kvm/x86_64/pmu_cpuid_test.c+63 -00 replies
6/7KVM: selftests: Test consistency of PMU MSRs with Intel PMU versiontools/testing/selftests/kvm/x86_64/pmu_cpuid_test.c+57 -00 replies
7/7KVM: selftests: Test Intel counters' bit width emulationtools/testing/selftests/kvm/x86_64/pmu_cpuid_test.c+105 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] KVM: selftests: Test the consistency of the PMU's CPUID and its features

Hi,

The KVM selfstests shows advantages over the KUT in terms of finding defects through flexible and varied guest settings form KVM user space.

This patch set tests whether Intel vPMU works properly with different Intel CPUID.0xA configurations, in which three issues were identified. It also provides test scaffolding and a sufficient number of pmu test cases to subsequently provide adequate code coverage of AMD vPMU or Intel complex features such as LBR or PEBS in selftests.

Please feel free to add more tests or share valuable comments.

Related bugs:
KVM: x86/pmu: Fix emulation on Intel counters' bit width
(https://lore.kernel.org/kvm/[email protected]/)
KVM: x86/pmu: Add Intel PMU supported fixed counters bit mask
(https://lore.kernel.org/kvm/[email protected]/)
KVM: x86/pmu: Prevent the PMU from counting disallowed events
(https://lore.kernel.org/kvm/[email protected]/)

Prerequisite:
KVM: selftests: Report enable_pmu module value when test is skipped
KVM: selftests: Add a helper to read kvm boolean module parameters
(https://lore.kernel.org/kvm/[email protected]/)

Jinrong Liang (3):
KVM: selftests: Test Intel PMU architectural events on fixed counters
KVM: selftests: Test consistency of CPUID with num of Fixed counters
KVM: selftests: Test consistency of PMU MSRs with Intel PMU version

Like Xu (4):
KVM: selftests: Test Intel PMU architectural events on gp counters
KVM: selftests: Test consistency of CPUID with num of GP counters
KVM: selftests: Test Intel supported fixed counters bit mask
KVM: selftests: Test Intel counters' bit width emulation

 tools/testing/selftests/kvm/Makefile          |   1 +
 .../selftests/kvm/x86_64/pmu_cpuid_test.c     | 626 ++++++++++++++++++
 2 files changed, 627 insertions(+)
 create mode 100644 tools/testing/selftests/kvm/x86_64/pmu_cpuid_test.c

base-commit: 94db7c022e10c76ac8ac27878822c3deed80aae1

Signature · 1 line
2.40.0