KVM: selftests: Use kvm_cpu_has() to query PDCM in PMU selftest
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:32 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:10 +0000 (18:14 -0700)
commitea129d22541ecd2bf4c8769d33f48e3105eca5f9
tree8e83d9728b7981b2b07b42c56d382cccbf866225
parent1ecbb337fa107c6a08800d34ba4f3296ad01103e
KVM: selftests: Use kvm_cpu_has() to query PDCM in PMU selftest

Use kvm_cpu_has() in the PMU test to query PDCM support instead of open
coding equivalent functionality using kvm_get_supported_cpuid_index().

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220614200707.3315957-8-seanjc@google.com
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/x86_64/vmx_pmu_caps_test.c