[GIT PULL] KVM: x86: Fixes for 6.11-rcN

From: Sean Christopherson
Date: Fri Aug 30 2024 - 19:40:57 EST


Please pull a handful of random fixes. Details in the tag and changelogs.

The following changes since commit 47ac09b91befbb6a235ab620c32af719f8208399:

Linux 6.11-rc4 (2024-08-18 13:17:27 -0700)

are available in the Git repository at:

https://github.com/kvm-x86/linux.git tags/kvm-x86-fixes-6.11-rcN

for you to fetch changes up to 5fa9f0480c7985e44e6ec32def0a395b768599cc:

KVM: SEV: Update KVM_AMD_SEV Kconfig entry and mention SEV-SNP (2024-08-28 05:46:25 -0700)

----------------------------------------------------------------
KVM x86 fixes for 6.11

- Fixup missed comments from the REMOVED_SPTE=>FROZEN_SPTE rename.

- Ensure a root is successfully loaded when pre-faulting SPTEs.

- Grab kvm->srcu when handling KVM_SET_VCPU_EVENTS to guard against accessing
memslots if toggling SMM happens to force a VM-Exit.

- Emulate MSR_{FS,GS}_BASE on SVM even though interception is always disabled,
so that KVM does the right thing if KVM's emulator encounters {RD,WR}MSR.

- Explicitly clear BUS_LOCK_DETECT from KVM's caps on AMD, as KVM doesn't yet
virtualize BUS_LOCK_DETECT on AMD.

- Cleanup the help message for CONFIG_KVM_AMD_SEV, and call out that KVM now
supports SEV-SNP too.

----------------------------------------------------------------
Maxim Levitsky (1):
KVM: SVM: fix emulation of msr reads/writes of MSR_FS_BASE and MSR_GS_BASE

Ravi Bangoria (1):
KVM: SVM: Don't advertise Bus Lock Detect to guest if SVM support is missing

Sean Christopherson (2):
KVM: x86/mmu: Check that root is valid/loaded when pre-faulting SPTEs
KVM: x86: Acquire kvm->srcu when handling KVM_SET_VCPU_EVENTS

Vitaly Kuznetsov (1):
KVM: SEV: Update KVM_AMD_SEV Kconfig entry and mention SEV-SNP

Yan Zhao (1):
KVM: x86/mmu: Fixup comments missed by the REMOVED_SPTE=>FROZEN_SPTE rename

arch/x86/kvm/Kconfig | 6 ++++--
arch/x86/kvm/mmu/mmu.c | 4 +++-
arch/x86/kvm/mmu/spte.c | 6 +++---
arch/x86/kvm/mmu/spte.h | 2 +-
arch/x86/kvm/mmu/tdp_mmu.c | 8 ++++----
arch/x86/kvm/svm/svm.c | 15 +++++++++++++++
arch/x86/kvm/x86.c | 2 ++
7 files changed, 32 insertions(+), 11 deletions(-)