Commit 874190fd authored by Sean Christopherson's avatar Sean Christopherson
Browse files

KVM: selftests: Test MONITOR and MWAIT, not just MONITOR for quirk



Fix a copy+paste error in monitor_mwait_test by switching one of the two
"monitor" instructions to  an "mwait".  The intent of the test is very
much to verify the quirk handles both MONITOR and MWAIT.

Fixes: 2325d4dd ("KVM: selftests: Add MONITOR/MWAIT quirk test")
Reported-by: default avatarYuan Yao <yuan.yao@linux.intel.com>
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220711225753.1073989-2-seanjc@google.com
parent 79f772b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ static void guest_monitor_wait(int testcase)
	else
		GUEST_ASSERT_2(!vector, testcase, vector);

	vector = kvm_asm_safe("monitor");
	vector = kvm_asm_safe("mwait");
	if (fault_wanted)
		GUEST_ASSERT_2(vector == UD_VECTOR, testcase, vector);
	else