OSDN Git Service

KVM: selftests: evmcs_test: Check that VMLAUNCH with bogus EVMPTR is causing #UD
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 5 May 2021 15:18:21 +0000 (17:18 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 May 2021 10:06:12 +0000 (06:06 -0400)
commit32d1b3ab588c1231dbfa9eb08819c50529ce77d7
tree76263cc61558294d620cbcd26a752a0bd9e59899
parentf5c7e8425f18fdb9bdb7d13340651d7876890329
KVM: selftests: evmcs_test: Check that VMLAUNCH with bogus EVMPTR is causing #UD

'run->exit_reason == KVM_EXIT_SHUTDOWN' check is not ideal as we may be
getting some unexpected exception. Directly check for #UD instead.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20210505151823.1341678-2-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/evmcs_test.c