KVM: selftests: Use kvm_cpu_has() in the SEV migration test
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:29 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:09 +0000 (18:14 -0700)
commitc5c5b827f129734602b796eceb4342b17858dc01
tree60d3af5b4723223d72cb652bf7771d61822e2a32
parent61d76b8a6943cd12b89029f9b04a75ce97f01d96
KVM: selftests: Use kvm_cpu_has() in the SEV migration test

Use kvm_cpu_has() in the SEV migration 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-5-seanjc@google.com
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/x86_64/sev_migrate_tests.c