OSDN Git Service

KVM: selftests: Add and use KVM helpers for x86 Family and Model
authorSean Christopherson <seanjc@google.com>
Thu, 6 Oct 2022 00:51:24 +0000 (00:51 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Nov 2022 00:59:06 +0000 (16:59 -0800)
commit074e9d4c9c6046f4605c9e37e90cff404119c525
treeaf8c121be8954e0e95f19691b1f03f4b58f01b04
parent24f3f9898e3c463b39dac8a03870c628dab8176e
KVM: selftests: Add and use KVM helpers for x86 Family and Model

Add KVM variants of the x86 Family and Model helpers, and use them in the
PMU event filter test.  Open code the retrieval of KVM's supported CPUID
entry 0x1.0 in anticipation of dropping kvm_get_supported_cpuid_entry().

No functional change intended.

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