KVM: selftests: Use get_cpuid_entry() in kvm_get_supported_cpuid_index()
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:46 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:16 +0000 (18:14 -0700)
commit662162fed26137651cc69971555c3f5a984345d7
tree2017fcf7ef36a1a63f6e746988833488f8c358b2
parent8b02674103e6f09f9f9397bfb7bfd60a9323c9c2
KVM: selftests: Use get_cpuid_entry() in kvm_get_supported_cpuid_index()

Use get_cpuid_entry() in kvm_get_supported_cpuid_index() to replace
functionally identical code.

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