]> Gentwo Git Trees - linux/.git/commit
KVM: selftests: Validate more arch-events in pmu_counters_test
authorDapeng Mi <dapeng1.mi@linux.intel.com>
Fri, 19 Sep 2025 21:46:47 +0000 (14:46 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 15:38:59 +0000 (08:38 -0700)
commit2922b595886575ebef46e65a0d4c8a857c5cd464
tree4f8dd58473e5398a6f384f639a64215d02e2bafd
parent1fcd3053aa1a6d4c417450c92ddb960b9edb1bf1
KVM: selftests: Validate more arch-events in pmu_counters_test

Add support for 5 new architectural events (4 topdown level 1 metrics
events and LBR inserts event) that will first show up in Intel's
Clearwater Forest CPUs.  Detailed info about the new events can be found
in SDM section 21.2.7 "Pre-defined Architectural  Performance Events".

Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Tested-by: Yi Lai <yi1.lai@intel.com>
[sean: drop "unavailable_mask" changes]
Tested-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20250919214648.1585683-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/include/x86/pmu.h
tools/testing/selftests/kvm/include/x86/processor.h
tools/testing/selftests/kvm/lib/x86/pmu.c
tools/testing/selftests/kvm/x86/pmu_counters_test.c