]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/sev: Use boot SVSM CA for all startup and init code
authorArd Biesheuvel <ardb@kernel.org>
Thu, 28 Aug 2025 10:22:12 +0000 (12:22 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 3 Sep 2025 15:58:26 +0000 (17:58 +0200)
commitc54604fb7f2522fec5b97e86103ec49e539e80fe
treeb37a6c0e823c9ef42a0bfcc74c6bcec3b500f884
parent00d25566761746ba53934ad3a89ea79923a38d01
x86/sev: Use boot SVSM CA for all startup and init code

To avoid having to reason about whether or not to use the per-CPU SVSM calling
area when running startup and init code on the boot CPU, reuse the boot SVSM
calling area as the per-CPU area for the BSP.

Thus, remove the need to make the per-CPU variables and associated state in
sev_cfg accessible to the startup code once confined.

  [ bp: Massage commit message. ]

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250828102202.1849035-33-ardb+git@google.com
arch/x86/boot/compressed/sev.c
arch/x86/boot/startup/sev-startup.c
arch/x86/coco/sev/core.c
arch/x86/include/asm/sev-internal.h