[PATCH 0/2] x86/snp: Add kexec support

From: Ashish Kalra
Date: Mon Feb 19 2024 - 20:18:44 EST


From: Ashish Kalra <ashish.kalra@xxxxxxx>

The patchset adds bits and pieces to get kexec (and crashkernel) work on
SNP guest.

This patchset requires [1] for chained guest kexec to work correctly.

[1]: https://lore.kernel.org/lkml/20240219225451.787816-1-Ashish.Kalra@xxxxxxx/

Ashish Kalra (2):
x86/mm: Do not zap PMD entry mapping unaccepted memory table during
kdump.
x86/snp: Convert shared memory back to private on kexec

arch/x86/include/asm/probe_roms.h | 1 +
arch/x86/include/asm/sev.h | 8 ++
arch/x86/kernel/probe_roms.c | 16 +++
arch/x86/kernel/sev.c | 211 ++++++++++++++++++++++++++++++
arch/x86/mm/init_64.c | 4 +-
arch/x86/mm/mem_encrypt_amd.c | 18 ++-
6 files changed, 256 insertions(+), 2 deletions(-)

--
2.34.1