]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: do not substitute SVM/VMX check with KVM_CAP_NESTED_STATE check
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 10 Jun 2020 13:58:46 +0000 (15:58 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Jun 2020 16:35:17 +0000 (12:35 -0400)
commit5963ef99bd26b1376585f2fe5bc960eb77d4e180
treed0b517861b6f56ea33b5a6ac1694bc731e12f906
parent2ef4d8d33c7bc6e8993cc53dffb7b33c8e2f43e8
KVM: selftests: do not substitute SVM/VMX check with KVM_CAP_NESTED_STATE check

state_test/smm_test use KVM_CAP_NESTED_STATE check as an indicator for
nested VMX/SVM presence and this is incorrect. Check for the required
features dirrectly.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200610135847.754289-2-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/x86_64/svm_util.h
tools/testing/selftests/kvm/include/x86_64/vmx.h
tools/testing/selftests/kvm/lib/x86_64/svm.c
tools/testing/selftests/kvm/lib/x86_64/vmx.c
tools/testing/selftests/kvm/x86_64/smm_test.c
tools/testing/selftests/kvm/x86_64/state_test.c