]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccb34671acbf8433b43dbaaf5e105ba2f85dedcb
tree8e83d9728b7981b2b07b42c56d382cccbf866225
parent271a5da16e5519b2bdee49aeb3d171f8eadba94f
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