Skip to content

Move SNP initialization to the CCP driver

Tycho Andersen linux-crypto lkml 5 versions – Applied

Status from this message: The following commit has been merged into the x86/sev branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 0 repliesApplied
  2. v47 patches 4 repliesApplied
  3. v37 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v210 patches1 replyApplied
v111 patches12 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/7x86/sev: Create a function to clear/zero the RMParch/x86/virt/svm/sev.c+27 -140 replies
2/7x86/sev: Create snp_prepare()arch/x86/include/asm/sev.h arch/x86/virt/svm/sev.c+32 -190 replies
3/7x86/sev: Create snp_shutdown()arch/x86/include/asm/sev.h arch/x86/virt/svm/sev.c+21 -30 replies
4/7x86/sev, crypto/ccp: Move SNP init to ccp driverarch/x86/virt/svm/sev.c drivers/crypto/ccp/sev-dev.c+2 -20 replies
5/7x86/sev, crypto/ccp: Move HSAVE_PA setup to arch/x86/arch/x86/virt/svm/sev.c drivers/crypto/ccp/sev-dev.c+7 -80 replies
6/7crypto/ccp: Implement SNP x86 shutdowndrivers/crypto/ccp/sev-dev.c include/linux/psp-sev.h+28 -180 replies
7/7crypto/ccp: Update HV_FIXED page states to allow freeing of memorydrivers/crypto/ccp/sev-dev.c+10 -30 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchTom LendackyHerbert Xu
1/7
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

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

From: "Tycho Andersen (AMD)" <[email protected]>

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

v4 is here: https://lore.kernel.org/all/[email protected]/

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

Signature · 1 line
2.53.0