Re: [PATCH] KVM: selftests: Make monitor_mwait require MONITOR/MWAIT feature

2024-04-29 Thread Sean Christopherson
On Thu, 11 Apr 2024 14:02:37 -0700, Zide Chen wrote: > 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] i

[PATCH] KVM: selftests: Make monitor_mwait require MONITOR/MWAIT feature

2024-04-11 Thread Zide Chen
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: Zide Chen --- tools/testing/selfte