]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdba84f02a4b95ac56668d706abc35b6f80edec0
tree60d3af5b4723223d72cb652bf7771d61822e2a32
parentb8d76c5f0c32cbe6bcd9e7f25e86478cc7f66206
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