linux/Documentation/virt/kvm/x86
Sean Christopherson 0e3b70aa13 KVM: x86: Document an erratum in KVM_SET_VCPU_EVENTS on Intel CPUs
Document a flaw in KVM's ABI which lets userspace attempt to inject a
"bad" hardware exception event, and thus induce VM-Fail on Intel CPUs.
Fixing the flaw is a fool's errand, as AMD doesn't sanity check the
validity of the error code, Intel CPUs that support CET relax the check
for Protected Mode, userspace can change the mode after queueing an
exception, KVM ignores the error code when emulating Real Mode exceptions,
and so on and so forth.

The VM-Fail itself doesn't harm KVM or the kernel beyond triggering a
ratelimited pr_warn(), so just document the oddity.

Link: https://lore.kernel.org/r/20240802200420.330769-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2024-11-01 09:22:28 -07:00
..
amd-memory-encryption.rst KVM: SEV: Add KVM_SEV_SNP_LAUNCH_FINISH command 2024-05-12 04:09:30 -04:00
cpuid.rst
errata.rst KVM: x86: Document an erratum in KVM_SET_VCPU_EVENTS on Intel CPUs 2024-11-01 09:22:28 -07:00
hypercalls.rst
index.rst
mmu.rst KVM: Documentation: Add the missing description for tdp_mmu_page into kvm_mmu_page 2023-09-27 13:32:18 -07:00
msr.rst KVM: x86: Improve documentation of MSR_KVM_ASYNC_PF_EN 2024-02-06 10:59:52 -08:00
nested-vmx.rst
running-nested-guests.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
timekeeping.rst