[GIT PULL] KVM: x86: SVM changes for 6.7

From: Sean Christopherson
Date: Fri Oct 27 2023 - 16:50:10 EST


An enhancement to help userspace deal with SEV-ES guest crashes, and cleanups
related to not being able to do "skip" emulation for SEV guests.

The following changes since commit 5804c19b80bf625c6a9925317f845e497434d6d3:

Merge tag 'kvm-riscv-fixes-6.6-1' of https://github.com/kvm-riscv/linux into HEAD (2023-09-23 05:35:55 -0400)

are available in the Git repository at:

https://github.com/kvm-x86/linux.git tags/kvm-x86-svm-6.7

for you to fetch changes up to 00682995409696866fe43984c74c8688bdf8f0a5:

KVM: SVM: Treat all "skip" emulation for SEV guests as outright failures (2023-10-04 15:08:53 -0700)

----------------------------------------------------------------
KVM SVM changes for 6.7:

- Report KVM_EXIT_SHUTDOWN instead of EINVAL if KVM intercepts SHUTDOWN while
running an SEV-ES guest.

- Clean up handling "failures" when KVM detects it can't emulate the "skip"
action for an instruction that has already been partially emulated. Drop a
hack in the SVM code that was fudging around the emulator code not giving
SVM enough information to do the right thing.

----------------------------------------------------------------
Peter Gonda (1):
KVM: SVM: Update SEV-ES shutdown intercepts with more metadata

Sean Christopherson (2):
KVM: x86: Refactor can_emulate_instruction() return to be more expressive
KVM: SVM: Treat all "skip" emulation for SEV guests as outright failures

arch/x86/include/asm/kvm-x86-ops.h | 2 +-
arch/x86/include/asm/kvm_host.h | 4 +--
arch/x86/kvm/svm/svm.c | 50 ++++++++++++++++----------------------
arch/x86/kvm/vmx/vmx.c | 12 ++++-----
arch/x86/kvm/x86.c | 22 +++++++++++------
5 files changed, 45 insertions(+), 45 deletions(-)