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)
commitc930e19790bbbff31c018009907c813fa0925f63
tree9bc8f8356562943c1b0bb707286e3f218cc8a30d
parent65efa61dc0d536d5f0602c33ee805a57cc07e9dc
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