KVM: selftests: Use kvm_cpu_has() for XSAVE in cr4_cpuid_sync_test
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:37 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:12 +0000 (18:14 -0700)
commit045520e4755bbdf2f2983309c8eab6176a97a13d
tree9f0080abd684c1b0c3472b30f1cdbd411dbbfa15
parent8fea056eeb0c4840593bf2ed1e4cab5030d0b5b5
KVM: selftests: Use kvm_cpu_has() for XSAVE in cr4_cpuid_sync_test

Use kvm_cpu_has() in the CR4/CPUID sync test instead of open coding
equivalent functionality using kvm_get_supported_cpuid_entry().

No functional change intended.

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