]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdf5d961d443da338c3b9eaaf2c42f3720be0f78d
tree40d26f4c896b1243c1f1f937b98fcb235ab15b5c
parent3225f2d8458faea0ce2db7b1e3748675fa8def5f
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: d58d011f67e99 ("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