]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Sep 2019 09:35:17 +0000 (10:35 +0100)
commit101743ca02841cc0784006af32c2b3ee6bffffae
tree3f92fd53cc016daf8acf20579bea3e7f87b217c6
parent5aac82ac9c7c073b0f165d5cfabb85239add642f
selftests: kvm: fix vmx_set_nested_state_test

[ Upstream commit c930e19790bbbff31c018009907c813fa0925f63 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/kvm/x86_64/vmx_set_nested_state_test.c