KVM: SVM: Treat all "skip" emulation for SEV guests as outright failures
authorSean Christopherson <seanjc@google.com>
Fri, 25 Aug 2023 01:36:21 +0000 (18:36 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 4 Oct 2023 22:08:53 +0000 (15:08 -0700)
commit00682995409696866fe43984c74c8688bdf8f0a5
tree54dbef023bf5d0f70c4ec214e386d3eae85f583d
parentaeb904f6b9f1de588cf3130dc8a2c458b236704e
KVM: SVM: Treat all "skip" emulation for SEV guests as outright failures

Treat EMULTYPE_SKIP failures on SEV guests as unhandleable emulation
instead of simply resuming the guest, and drop the hack-a-fix which
effects that behavior for the INT3/INTO injection path.  If KVM can't
skip an instruction for which KVM has already done partial emulation,
resuming the guest is undesirable as doing so may corrupt guest state.

Link: https://lore.kernel.org/r/20230825013621.2845700-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/x86.c