]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Don't probe KVM_CAP_HYPERV_ENLIGHTENED_VMCS when nested VMX is unsupp...
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 10 Jun 2020 13:58:47 +0000 (15:58 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Jun 2020 16:35:18 +0000 (12:35 -0400)
commitdea2f8e2b06c6c76b548796ca1a073e55b84783f
tree601c65e118aef068b13025529824edf901e749ff
parent187e96ca9497018943c2e444e7fbb2a31e945b53
KVM: selftests: Don't probe KVM_CAP_HYPERV_ENLIGHTENED_VMCS when nested VMX is unsupported

KVM_CAP_HYPERV_ENLIGHTENED_VMCS will be reported as supported even when
nested VMX is not, fix evmcs_test/hyperv_cpuid tests to check for both.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200610135847.754289-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/evmcs_test.c
tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c