linux/arch/x86/kvm/svm
Sean Christopherson 04c40f344d KVM: SVM: Inject #UD on attempted emulation for SEV guest w/o insn buffer
Inject #UD if KVM attempts emulation for an SEV guests without an insn
buffer and instruction decoding is required.  The previous behavior of
allowing emulation if there is no insn buffer is undesirable as doing so
means KVM is reading guest private memory and thus decoding cyphertext,
i.e. is emulating garbage.  The check was previously necessary as the
emulation type was not provided, i.e. SVM needed to allow emulation to
handle completion of emulation after exiting to userspace to handle I/O.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Message-Id: <20220120010719.711476-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-01-26 12:15:01 -05:00
..
avic.c KVM: SVM: Nullify vcpu_(un)blocking() hooks if AVIC is disabled 2022-01-19 12:14:49 -05:00
nested.c KVM: X86: Remove mmu parameter from load_pdptrs() 2021-12-08 04:25:14 -05:00
pmu.c KVM: x86: Making the module parameter of vPMU more common 2022-01-17 12:56:03 -05:00
sev.c KVM: SVM: Explicitly require DECODEASSISTS to enable SEV support 2022-01-26 12:15:00 -05:00
svm.c KVM: SVM: Inject #UD on attempted emulation for SEV guest w/o insn buffer 2022-01-26 12:15:01 -05:00
svm.h KVM: SVM: Nullify vcpu_(un)blocking() hooks if AVIC is disabled 2022-01-19 12:14:49 -05:00
svm_onhyperv.c KVM: SVM: hyper-v: Direct Virtual Flush support 2021-06-17 13:09:38 -04:00
svm_onhyperv.h KVM: SVM: delay svm_vcpu_init_msrpm after svm->vmcb is initialized 2021-07-27 16:59:00 -04:00
svm_ops.h x86/kvm: Always inline vmload() / vmsave() 2021-09-15 15:51:45 +02:00
vmenter.S KVM/SVM: Move vmenter.S exception fixups out of line 2021-03-15 04:43:56 -04:00