]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/kvm: make platform_info_test pass on AMD
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 10 Jun 2019 17:22:55 +0000 (19:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Sep 2019 09:35:23 +0000 (10:35 +0100)
commit23da8e9ef69bc9af8f542edcf2123441edb45071
treeac048b0e79de63ba0fd6cdcd8ab220f7b329c077
parent666a41848d72bed82ef323d5139a651569fc0e27
selftests/kvm: make platform_info_test pass on AMD

[ Upstream commit e4427372398c31f57450565de277f861a4db5b3b ]

test_msr_platform_info_disabled() generates EXIT_SHUTDOWN but VMCB state
is undefined after that so an attempt to launch this guest again from
test_msr_platform_info_enabled() fails. Reorder the tests to make test
pass.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/kvm/x86_64/platform_info_test.c