[GIT PULL] x86/sev for v6.13

From: Borislav Petkov
Date: Mon Nov 18 2024 - 11:04:14 EST


Hi Linus,

please pull the SEV lineup for v6.13.

Thx.

---

The following changes since commit 8e929cb546ee42c9a61d24fae60605e9e3192354:

Linux 6.12-rc3 (2024-10-13 14:33:32 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip tags/x86_sev_for_v6.13

for you to fetch changes up to 8bca85cc1eb72e21a3544ab32e546a819d8674ca:

x86/sev: Cleanup vc_handle_msr() (2024-11-07 12:10:01 +0100)

----------------------------------------------------------------
- Do the proper memory conversion of guest memory in order to be able to kexec
kernels in SNP guests along with other adjustments and cleanups to that
effect

- Start converting and moving functionality from the sev-guest driver into
core code with the purpose of supporting the secure TSC SNP feature where
the hypervisor cannot influence the TSC exposed to the guest anymore

- Add a "nosnp" cmdline option in order to be able to disable SNP support in
the hypervisor and thus free-up resources which are not going to be used

- Cleanups

----------------------------------------------------------------
Ashish Kalra (3):
x86/boot: Skip video memory access in the decompressor for SEV-ES/SNP
x86/mm: Refactor __set_clr_pte_enc()
x86/sev: Convert shared memory back to private on kexec

Borislav Petkov (AMD) (1):
x86/sev: Cleanup vc_handle_msr()

Nikunj A Dadhania (6):
virt: sev-guest: Use AES GCM crypto library
x86/sev: Handle failures from snp_init()
x86/sev: Cache the secrets page address
virt: sev-guest: Consolidate SNP guest messaging parameters to a struct
virt: sev-guest: Reduce the scope of SNP command mutex
virt: sev-guest: Carve out SNP message context structure

Pavan Kumar Paluri (2):
x86/virt: Move SEV-specific parsing into arch/x86/virt/svm
x86/virt: Provide "nosnp" boot option for sev kernel command line

Documentation/arch/x86/x86_64/boot-options.rst | 5 +
arch/x86/boot/compressed/misc.c | 15 +
arch/x86/coco/sev/core.c | 269 ++++++++++------
arch/x86/include/asm/sev-common.h | 27 ++
arch/x86/include/asm/sev.h | 67 +++-
arch/x86/mm/mem_encrypt_amd.c | 77 +++--
arch/x86/mm/mem_encrypt_identity.c | 11 +-
arch/x86/virt/svm/Makefile | 1 +
arch/x86/virt/svm/cmdline.c | 45 +++
drivers/virt/coco/sev-guest/Kconfig | 4 +-
drivers/virt/coco/sev-guest/sev-guest.c | 416 ++++++++++---------------
11 files changed, 543 insertions(+), 394 deletions(-)
create mode 100644 arch/x86/virt/svm/cmdline.c


--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette