]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c3c2382aae5e40f2d68d44b281592800d9b4a7d
tree9f0080abd684c1b0c3472b30f1cdbd411dbbfa15
parent1aa4e484e7f1e788d1b7aa50155c1bdc57be9773
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