]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Use kvm_cpu_has() for nested SVM checks
authorSean Christopherson <seanjc@google.com>
Tue, 14 Jun 2022 20:06:30 +0000 (20:06 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:10 +0000 (18:14 -0700)
commitbab66d0583c6ffbdd5425577d8f1cc373a831e36
tree613b49bad4628d9fdc0d1d566d7d65461e71cdf7
parentfdba84f02a4b95ac56668d706abc35b6f80edec0
KVM: selftests: Use kvm_cpu_has() for nested SVM checks

Use kvm_cpu_has() to check for nested SVM support, and drop the helpers
now that their functionality is trivial to implement.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220614200707.3315957-6-seanjc@google.com
tools/testing/selftests/kvm/include/x86_64/svm_util.h
tools/testing/selftests/kvm/lib/x86_64/svm.c
tools/testing/selftests/kvm/x86_64/hyperv_svm_test.c
tools/testing/selftests/kvm/x86_64/smm_test.c
tools/testing/selftests/kvm/x86_64/state_test.c
tools/testing/selftests/kvm/x86_64/svm_int_ctl_test.c
tools/testing/selftests/kvm/x86_64/svm_nested_soft_inject_test.c
tools/testing/selftests/kvm/x86_64/svm_vmcall_test.c