]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7dfdae01696739b203e012da84c03097a50f68b5
tree35295512cc78381921c6945883ad0204022f52d9
parentb9fe058c39903ef7304c62f0c5ad9d86e0498478
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