OSDN Git Service

KVM: selftests: Convert vmx_pmu_caps_test to use X86_PROPERTY_*
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:51:21 +0000 (00:51 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:59:05 +0000 (16:59 -0800)
commit4feb9d21a407318129b6ea3a6735f1866439b9ab
tree35f381355c7932e81aa54c5298417567c2ff161a
parent5dc19f1c7dd302f48a9f7fe7f29bb186d3477795
KVM: selftests: Convert vmx_pmu_caps_test to use X86_PROPERTY_*

Add X86_PROPERTY_PMU_VERSION and use it in vmx_pmu_caps_test to replace
open coded versions of the same functionality.

No functional change intended.

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