[PATCH v5 0/7] Move SNP initialization to the CCP driver

Tycho Andersen posted 7 patches 1 week ago
arch/x86/include/asm/sev.h   |   4 ++
arch/x86/virt/svm/sev.c      | 113 ++++++++++++++++++++++++-----------
drivers/crypto/ccp/sev-dev.c |  62 ++++++++++---------
include/linux/psp-sev.h      |   5 +-
4 files changed, 122 insertions(+), 62 deletions(-)
[PATCH v5 0/7] Move SNP initialization to the CCP driver
Posted by Tycho Andersen 1 week ago
From: "Tycho Andersen (AMD)" <tycho@kernel.org>

The sole change is to add a cpus_read_lock/unlock() to snp_prepare().

v4 is here: https://lore.kernel.org/all/20260324161301.1353976-1-tycho@kernel.org/

Thanks,

Tycho

Tom Lendacky (2):
  x86/sev: 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/sev: Create snp_prepare()
  x86/sev: Create snp_shutdown()
  x86/sev, crypto/ccp: Move SNP init to ccp driver
  x86/sev, crypto/ccp: Move HSAVE_PA setup to arch/x86/
  crypto/ccp: Implement SNP x86 shutdown

 arch/x86/include/asm/sev.h   |   4 ++
 arch/x86/virt/svm/sev.c      | 113 ++++++++++++++++++++++++-----------
 drivers/crypto/ccp/sev-dev.c |  62 ++++++++++---------
 include/linux/psp-sev.h      |   5 +-
 4 files changed, 122 insertions(+), 62 deletions(-)


base-commit: 2ca26dad836fb4cd18694ef85af7a71d2878b239
-- 
2.53.0