]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use this_cpu_has() in CR4/CPUID sync test
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:58 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:21 +0000 (18:14 -0700)
commit6c6cd3db21536c6f635adeb28472e81ac5677aac
treeaa55477bb1737cf1a0602a827ae745155c405744
parent572582b700c6a70d017154ce6e12f3ed8cf72cdd
KVM: selftests: Use this_cpu_has() in CR4/CPUID sync test

Use this_cpu_has() to query OSXSAVE from the L1 guest in the CR4=>CPUID
sync test.

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