]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/sev: Carve out and export SNP guest messaging init routines
authorNikunj A Dadhania <nikunj@amd.com>
Mon, 6 Jan 2025 12:46:23 +0000 (18:16 +0530)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 7 Jan 2025 09:33:20 +0000 (10:33 +0100)
commitc5529418d05079384af4dbbb6f6156344c2ffce2
treed3471821c81d6d120ea43e247a4583cbd99faa6c
parent864884a0c29cc610a859b5210158112fd8675fe1
x86/sev: Carve out and export SNP guest messaging init routines

Currently, the sev-guest driver is the only user of SNP guest messaging. All
routines for initializing SNP guest messaging are implemented within the
sev-guest driver and are not available during early boot.

In preparation for adding Secure TSC guest support, carve out APIs to allocate
and initialize the guest messaging descriptor context and make it part of
coco/sev/core.c. As there is no user of sev_guest_platform_data anymore,
remove the structure.

Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20250106124633.1418972-4-nikunj@amd.com
arch/x86/Kconfig
arch/x86/coco/sev/core.c
arch/x86/include/asm/sev.h
drivers/virt/coco/sev-guest/Kconfig
drivers/virt/coco/sev-guest/sev-guest.c