Skip to content
Commit 72cd4de0 authored by Zide Chen's avatar Zide Chen Committed by Sean Christopherson
Browse files

KVM: selftests: Make monitor_mwait require MONITOR/MWAIT feature



If this feature is not supported or is disabled by IA32_MISC_ENABLE on
the host, executing MONITOR or MWAIT instruction from the guest doesn't
cause monitor/mwait VM exits, but a #UD.

So, we need to skip this test if CPUID.01H:ECX[3] is cleared.

Signed-off-by: default avatarZide Chen <zide.chen@intel.com>
Link: https://lore.kernel.org/r/20240411210237.34646-1-zide.chen@intel.com
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 201142d1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment