diff options
author | Sean Christopherson <[email protected]> | 2022-06-08 22:45:16 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-06-22 15:14:20 -0400 |
commit | 2325d4dd7321cd569f996c5d091f4f83efb25693 (patch) | |
tree | ff5dd64034e312823d466ac090a49540f8ce8c82 /tools/testing/selftests/kvm/kvm_binary_stats_test.c | |
parent | cc5851c6be864c5772944e32df3da322fe3ad415 (diff) |
KVM: selftests: Add MONITOR/MWAIT quirk test
Add a test to verify the "MONITOR/MWAIT never fault" quirk, and as a
bonus, also verify the related "MISC_ENABLES ignores ENABLE_MWAIT" quirk.
If the "never fault" quirk is enabled, MONITOR/MWAIT should always be
emulated as NOPs, even if they're reported as disabled in guest CPUID.
Use the MISC_ENABLES quirk to coerce KVM into toggling the MWAIT CPUID
enable, as KVM now disallows manually toggling CPUID bits after running
the vCPU.
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/kvm_binary_stats_test.c')
0 files changed, 0 insertions, 0 deletions