]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: kvm: fix vmx_set_nested_state_test
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 Aug 2019 16:07:34 +0000 (12:07 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Aug 2019 07:16:03 +0000 (09:16 +0200)
commitd089966878bdc91856f689fa93706d5901142297
tree9bc8f8356562943c1b0bb707286e3f218cc8a30d
parentcd0590dec03e71cbc84415479565725c730b6c86
selftests: kvm: fix vmx_set_nested_state_test

vmx_set_nested_state_test is trying to use the KVM_STATE_NESTED_EVMCS without
enabling enlightened VMCS first.  Correct the outcome of the test, and actually
test that it succeeds after the capability is enabled.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c