Re: [PATCH v4 0/7] Move SNP initialization to the CCP driver

From: Borislav Petkov

Date: Wed Mar 25 2026 - 05:49:52 EST


On March 24, 2026 4:12:54 PM UTC, Tycho Andersen <tycho@xxxxxxxxxx> wrote:
>From: "Tycho Andersen (AMD)" <tycho@xxxxxxxxxx>
>
>Changes are:
>* commit message fixes: snp -> sev, add arch/x86/ to path, capitalize things
>* rename snp_set_hsave_pa() -> clear_hsave_pa(), since it's clearing the register
>* snp_prepare_for_snp_init() -> snp_prepare()
>* snp_x86_shutdown() -> snp_shutdown()
>* 0 -> NULL, drop a newline in snp_shutdown()
>* carry Herbert's acks as appropriate
>
>v3 is here: https://lore.kernel.org/all/20260317162157.150842-1-tycho@xxxxxxxxxx/
>
>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 | 111 ++++++++++++++++++++++++-----------
> drivers/crypto/ccp/sev-dev.c | 62 ++++++++++---------
> include/linux/psp-sev.h | 5 +-
> 4 files changed, 120 insertions(+), 62 deletions(-)
>
>
>base-commit: 2ca26dad836fb4cd18694ef85af7a71d2878b239

Sachiko has some questions:

https://sashiko.dev/#/patchset/20260324161301.1353976-1-tycho%40kernel.org
--
Small device. Typos and formatting crap