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

Tycho Andersen posted 7 patches 2 weeks, 6 days ago
There is a newer version of this series
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(-)
[PATCH v3 0/7] Move SNP initialization to the CCP driver
Posted by Tycho Andersen 2 weeks, 6 days ago
From: "Tycho Andersen (AMD)" <tycho@kernel.org>

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@kernel.org/

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
Re: [PATCH v3 0/7] Move SNP initialization to the CCP driver
Posted by Borislav Petkov 2 weeks ago
On Tue, Mar 17, 2026 at 10:21:50AM -0600, Tycho Andersen wrote:
> 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(-)

Ok, I think the next version of this will be ready, pls incorporate all review
feedback and I can pick it up.

Thx.

-- 
Regards/Gruss,
    Boris.

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