]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Fix MWAIT error message when guest assertion fails
authorSean Christopherson <seanjc@google.com>
Wed, 29 Nov 2023 22:49:13 +0000 (14:49 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Dec 2023 16:15:40 +0000 (08:15 -0800)
commit1af3bf2befc07c7198100949dd1bece02a7dbded
tree4cd6a8ec5c34fa722fd91c55c94c94af15691d01
parente29f5d0c3c7c055b36ef55f9e92100450b2506a3
KVM: selftests: Fix MWAIT error message when guest assertion fails

Print out the test and vector as intended when a guest assert fails an
assertion regarding MONITOR/MWAIT faulting.  Unfortunately, the guest
printf support doesn't detect such issues at compile-time, so the bug
manifests as a confusing error message, e.g. in the most confusing case,
the test complains that it got vector "0" instead of expected vector "0".

Fixes: 0f52e4aaa614 ("KVM: selftests: Convert the MONITOR/MWAIT test to use printf guest asserts")
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20231107182159.404770-1-seanjc@google.com
Link: https://lore.kernel.org/r/20231129224916.532431-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/monitor_mwait_test.c