]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/sev: Pass SVSM calling area down to early page state change API
authorArd Biesheuvel <ardb@kernel.org>
Thu, 28 Aug 2025 10:22:11 +0000 (12:22 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 3 Sep 2025 15:58:22 +0000 (17:58 +0200)
commit00d25566761746ba53934ad3a89ea79923a38d01
tree1a653b1b3c4954aa9f6812a7546906ad299516dd
parentd5949ea50c5642ab7e3c4dd6020e23725c079b25
x86/sev: Pass SVSM calling area down to early page state change API

The early page state change API is mostly only used very early, when only the
boot time SVSM calling area is in use. However, this API is also called by the
kexec finishing code, which runs very late, and potentially from a different
CPU (which uses a different calling area).

To avoid pulling the per-CPU SVSM calling area pointers and related SEV state
into the startup code, refactor the page state change API so the SVSM calling
area virtual and physical addresses can be provided by the caller.

No functional change intended.

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