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
This commit is contained in:
Sean Christopherson 2022-06-14 20:06:46 +00:00
commit 662162fed2
2 changed files with 7 additions and 39 deletions