]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/sev, crypto/ccp: Move HSAVE_PA setup to arch/x86/
authorTycho Andersen (AMD) <tycho@kernel.org>
Tue, 24 Mar 2026 16:12:59 +0000 (10:12 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sun, 29 Mar 2026 17:59:58 +0000 (19:59 +0200)
commit7b2bc5f0ab983a7aad7fa5180cede4b3e91fc164
tree5ad47c8bcb8cb05498553ccd8511fa8d2cb01f0b
parent299933b118d1bcf8b93d58076aed34582718b0dd
x86/sev, crypto/ccp: Move HSAVE_PA setup to arch/x86/

Now that there is snp_prepare() that indicates when the CCP driver wants to
prepare the architecture for SNP_INIT(_EX), move this architecture-specific
bit of code to a more sensible place.

Signed-off-by: Tycho Andersen (AMD) <tycho@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://patch.msgid.link/20260324161301.1353976-6-tycho@kernel.org
arch/x86/virt/svm/sev.c
drivers/crypto/ccp/sev-dev.c