KVM: selftests: Convert the MONITOR/MWAIT test to use printf guest asserts
authorSean Christopherson <seanjc@google.com>
Sat, 29 Jul 2023 00:36:33 +0000 (17:36 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 2 Aug 2023 21:43:11 +0000 (14:43 -0700)
commit0f52e4aaa61400ce68e122b678811777734421ff
treeb6e3dbb5007c91ebe19ce118e8cd0a60ef8fc8c0
parentbf6c760b9df39ebc83245b37ef09ee390ba05e9f
KVM: selftests: Convert the MONITOR/MWAIT test to use printf guest asserts

Convert x86's MONITOR/MWAIT test to use printf-based guest asserts.  Add a
macro to handle reporting failures to reduce the amount of copy+paste
needed for MONITOR vs. MWAIT.

Link: https://lore.kernel.org/r/20230729003643.1053367-25-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/monitor_mwait_test.c