KVM: selftests: Use kvm_cpu_has() for XSAVES in XSS MSR test
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:34 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:11 +0000 (18:14 -0700)
commitfdd1e2788c41e9b420a3744e022b5ff85b7e5fc0
tree35295512cc78381921c6945883ad0204022f52d9
parent50445ea2337a5f8df2242f795f45b6cf8c959c77
KVM: selftests: Use kvm_cpu_has() for XSAVES in XSS MSR test

Use kvm_cpu_has() in the XSS MSR test 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-10-seanjc@google.com
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/x86_64/xss_msr_test.c