]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Tweak name of MONITOR/MWAIT #UD quirk to make it #UD specific
authorSean Christopherson <seanjc@google.com>
Mon, 11 Jul 2022 22:57:53 +0000 (22:57 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 14 Jul 2022 01:14:05 +0000 (18:14 -0700)
commited285b1fb9f6d018cc896d6152a81c32f9dafd69
treefd47e7a827c627d90d41850964b2708a2554ca9d
parente96b6cc523959999403e1e4cffea54dc9693cb0a
KVM: x86: Tweak name of MONITOR/MWAIT #UD quirk to make it #UD specific

Add a "UD" clause to KVM_X86_QUIRK_MWAIT_NEVER_FAULTS to make it clear
that the quirk only controls the #UD behavior of MONITOR/MWAIT.  KVM
doesn't currently enforce fault checks when MONITOR/MWAIT are supported,
but that could change in the future.  SVM also has a virtualization hole
in that it checks all faults before intercepts, and so "never faults" is
already a lie when running on SVM.

Fixes: 419d42c3463b ("KVM: x86: Add a quirk for KVM's "MONITOR/MWAIT are NOPs!" behavior")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220711225753.1073989-4-seanjc@google.com
Documentation/virt/kvm/api.rst
arch/x86/include/asm/kvm_host.h
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/x86.c
tools/testing/selftests/kvm/x86_64/monitor_mwait_test.c