[PATCH v3 0/7] Move SNP initialization to the CCP driver
From: Tycho Andersen
Date: Tue Mar 17 2026 - 12:42:48 EST
From: "Tycho Andersen (AMD)" <tycho@xxxxxxxxxx>
Here's v3 of the series. Changes are:
* rebase on tip/master and drop the three patches that are already there
* prep -> preparation in one more place that I missed
* snp_clear_rmp() -> clear_rmp()
* move the create snp_x86_shutdown() patch earlier, so the order is now: x86
only stuff, x86 + crypto stuff, crypto only stuff. Hopefully that makes it
easier to apply in the event of patch tetris.
v2 is here: https://lore.kernel.org/all/20260309180053.2389118-1-tycho@xxxxxxxxxx/
Thanks,
Tycho
Tom Lendacky (2):
x86/snp: Create a function to clear/zero the RMP
crypto: ccp - Update HV_FIXED page states to allow freeing of memory
Tycho Andersen (AMD) (5):
x86/snp: create snp_prepare_for_snp_init()
x86/snp: create snp_x86_shutdown()
x86/snp, crypto: move SNP init to ccp driver
x86/snp, crypto: move HSAVE_PA setup to arch/
crypto: ccp - implement SNP x86 shutdown
arch/x86/include/asm/sev.h | 4 ++
arch/x86/virt/svm/sev.c | 112 ++++++++++++++++++++++++-----------
drivers/crypto/ccp/sev-dev.c | 62 ++++++++++---------
include/linux/psp-sev.h | 4 +-
4 files changed, 120 insertions(+), 62 deletions(-)
base-commit: 270b06a2452b0a20b149591ee90e22e3d8d55358
--
2.53.0