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)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Aug 2019 17:08:18 +0000 (19:08 +0200)
commite4427372398c31f57450565de277f861a4db5b3b
tree90c4adf46ff91dc7b31bc457f8836ef4edabd75a
parentd012a06ab1d23178fc6856d8d2161fbcc4dd8ebd
selftests/kvm: make platform_info_test pass on AMD

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>
tools/testing/selftests/kvm/x86_64/platform_info_test.c