linux-stable/Documentation/virt/kvm
Oliver Upton 6d8491910f KVM: x86: Introduce KVM_CAP_DISABLE_QUIRKS2
KVM_CAP_DISABLE_QUIRKS is irrevocably broken. The capability does not
advertise the set of quirks which may be disabled to userspace, so it is
impossible to predict the behavior of KVM. Worse yet,
KVM_CAP_DISABLE_QUIRKS will tolerate any value for cap->args[0], meaning
it fails to reject attempts to set invalid quirk bits.

The only valid workaround for the quirky quirks API is to add a new CAP.
Actually advertise the set of quirks that can be disabled to userspace
so it can predict KVM's behavior. Reject values for cap->args[0] that
contain invalid bits.

Finally, add documentation for the new capability and describe the
existing quirks.

Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20220301060351.442881-5-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-03-21 09:28:41 -04:00
..
arm KVM: arm64: Fix Function ID typo for PTP_KVM service 2021-04-20 17:19:08 +01:00
devices Merge branch kvm-arm64/misc-5.18 into kvmarm-master/next 2022-03-09 11:16:48 +00:00
amd-memory-encryption.rst crypto: ccp - Add SEV_INIT_EX support 2021-12-17 16:59:47 +11:00
api.rst KVM: x86: Introduce KVM_CAP_DISABLE_QUIRKS2 2022-03-21 09:28:41 -04:00
cpuid.rst KVM: X86: Introduce KVM_HC_MAP_GPA_RANGE hypercall 2021-06-17 14:25:39 -04:00
halt-polling.rst
hypercalls.rst KVM: X86: Introduce KVM_HC_MAP_GPA_RANGE hypercall 2021-06-17 14:25:39 -04:00
index.rst
locking.rst Merge branch 'kvm-tdpmmu-fixes' into HEAD 2021-08-13 03:35:01 -04:00
mmu.rst KVM: X86: Rename gpte_is_8_bytes to has_4_byte_gpte and invert the direction 2021-12-08 04:25:13 -05:00
msr.rst KVM: X86: Introduce KVM_HC_MAP_GPA_RANGE hypercall 2021-06-17 14:25:39 -04:00
nested-vmx.rst
ppc-pv.rst
review-checklist.rst
running-nested-guests.rst
s390-diag.rst KVM: s390: diag9c (directed yield) forwarding 2021-03-09 10:16:26 +01:00
s390-pv-boot.rst docs: virt: kvm: s390-pv-boot.rst: avoid using ReST :doc:foo markup 2021-06-17 13:24:39 -06:00
s390-pv.rst
timekeeping.rst
vcpu-requests.rst KVM: Drop KVM_REQ_MMU_RELOAD and update vcpu-requests.rst documentation 2022-03-01 08:58:26 -05:00