]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Provide valid inputs for MONITOR/MWAIT regs
authorSean Christopherson <seanjc@google.com>
Mon, 11 Jul 2022 22:57:52 +0000 (22:57 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 12 Jul 2022 22:31:14 +0000 (22:31 +0000)
commit42753fed62aaebe00ffa824ec953a45ad8bdb8a7
tree0d38fe9639f174c24617c27033099bfc06180623
parent0199a704dd75560e8def294156b8ed18d4a83c93
KVM: selftests: Provide valid inputs for MONITOR/MWAIT regs

Provide valid inputs for RAX, RCX, and RDX when testing whether or not
KVM injects a #UD on MONITOR/MWAIT.  SVM has a virtualization hole and
checks for _all_ faults before checking for intercepts, e.g. MONITOR with
an unsupported RCX will #GP before KVM gets a chance to intercept and
emulate.

Fixes: 3f6bbaf7e3c3 ("KVM: selftests: Add MONITOR/MWAIT quirk test")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220711225753.1073989-3-seanjc@google.com
tools/testing/selftests/kvm/x86_64/monitor_mwait_test.c