linux-xiaomi-chiron/Documentation/virt/kvm
Sean Christopherson bfbcc81bb8 KVM: x86: Add a quirk for KVM's "MONITOR/MWAIT are NOPs!" behavior
Add a quirk for KVM's behavior of emulating intercepted MONITOR/MWAIT
instructions a NOPs regardless of whether or not they are supported in
guest CPUID.  KVM's current behavior was likely motiviated by a certain
fruity operating system that expects MONITOR/MWAIT to be supported
unconditionally and blindly executes MONITOR/MWAIT without first checking
CPUID.  And because KVM does NOT advertise MONITOR/MWAIT to userspace,
that's effectively the default setup for any VMM that regurgitates
KVM_GET_SUPPORTED_CPUID to KVM_SET_CPUID2.

Note, this quirk interacts with KVM_X86_QUIRK_MISC_ENABLE_NO_MWAIT.  The
behavior is actually desirable, as userspace VMMs that want to
unconditionally hide MONITOR/MWAIT from the guest can leave the
MISC_ENABLE quirk enabled.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220608224516.3788274-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-06-20 11:50:42 -04:00
..
arm Documentation: Fix index.rst after psci.rst renaming 2022-05-04 13:13:55 +01:00
devices Merge branch kvm-arm64/misc-5.18 into kvmarm-master/next 2022-03-09 11:16:48 +00:00
s390 Documentation: virt: Protected virtual machine dumps 2022-06-01 16:57:14 +02:00
x86 KVM: X86/MMU: Fix shadowing 5-level NPT for 4-level NPT L1 guest 2022-04-29 12:50:00 -04:00
api.rst KVM: x86: Add a quirk for KVM's "MONITOR/MWAIT are NOPs!" behavior 2022-06-20 11:50:42 -04:00
index.rst Documentation: KVM: add separate directories for architecture-specific documentation 2022-03-29 13:21:20 -04:00
locking.rst Documentation: kvm: include new locks 2022-03-29 13:21:19 -04:00
ppc-pv.rst docs: kvm: Convert ppc-pv.txt to ReST format 2020-02-12 20:10:05 +01:00
review-checklist.rst docs: fix broken references for ReST files that moved around 2020-04-20 15:45:03 -06:00
vcpu-requests.rst Documentation: KVM: Add SPDX-License-Identifier tag 2022-04-11 13:28:56 -04:00