OSDN Git Service

KVM: selftests: assert on exit reason in CR4/cpuid sync test
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 13 Mar 2019 20:19:26 +0000 (13:19 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Mar 2019 16:29:05 +0000 (17:29 +0100)
commit8df98ae0ab2ead9a02228756eec26f8d7b17f499
tree40d26f4c896b1243c1f1f937b98fcb235ab15b5c
parent45def77ebf79e2e8942b89ed79294d97ce914fa0
KVM: selftests: assert on exit reason in CR4/cpuid sync test

...so that the test doesn't end up in an infinite loop if it fails for
whatever reason, e.g. SHUTDOWN due to gcc inserting stack canary code
into ucall() and attempting to derefence a null segment.

Fixes: ca359066889f7 ("kvm: selftests: add cr4_cpuid_sync_test")
Cc: Wei Huang <wei@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/cr4_cpuid_sync_test.c