]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/sev: Use MSR protocol for remapping SVSM calling area
authorArd Biesheuvel <ardb@kernel.org>
Thu, 28 Aug 2025 10:22:05 +0000 (12:22 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sun, 31 Aug 2025 10:40:55 +0000 (12:40 +0200)
commitc15a4705d59caeb44f4c373cf04e89041309e568
tree0531181fc38c6dcaebb8053a2872de62a93d7ae0
parente2e29752357f32feb69a68e9e6e7361405b3f289
x86/sev: Use MSR protocol for remapping SVSM calling area

As the preceding code comment already indicates, remapping the SVSM
calling area occurs long before the GHCB page is configured, and so
calling svsm_perform_call_protocol() is guaranteed to result in a call
to svsm_perform_msr_protocol().

So just call the latter directly. This allows most of the GHCB based API
infrastructure to be moved out of the startup code in a subsequent
patch.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/20250828102202.1849035-26-ardb+git@google.com
arch/x86/boot/startup/sev-shared.c
arch/x86/boot/startup/sev-startup.c