Linux EFI development
 help / color / mirror / Atom feed
* [PATCH v2 0/3] x86/efistub: Omit SEV-SNP init from the stub
@ 2026-12-04 15:48 Ard Biesheuvel
  2026-12-04 15:48 ` [PATCH v2 1/3] x86/efistub: Obtain SEV CC blob address " Ard Biesheuvel
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ard Biesheuvel @ 2026-12-04 15:48 UTC (permalink / raw)
  To: linux-efi; +Cc: Ard Biesheuvel, Borislav Petkov, Tom Lendacky, Ashish Kalra

From: Ard Biesheuvel <ardb@kernel.org>

Calling sev_enable() from the EFI stub is mostly pointless, as the core
kernel does the exact same thing once it boots right after.

So set the blob CC address in boot_params from the EFI stub as well, and
move the GHCB event support check for SVSM into the source file that the
decompressor shares with the core kernel.

With those changes, the sev_enable() call from the EFI stub can be
dropped, leaving the firmware's #VC handling in place until the kernel
proper takes over.

Changes since v1 [0]:
- Add SVSM GHCB handling
- Rebase onto recent kernel

[0] https://lore.kernel.org/linux-efi/20250909080631.2867579-5-ardb+git@google.com/

Cc: Borislav Petkov <bp@alien8.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Ashish Kalra <Ashish.Kalra@amd.com>

Ard Biesheuvel (3):
  x86/efistub: Obtain SEV CC blob address from the stub
  x86/sev: Check for SVSM GHCB event support in svsm_setup_ca()
  x86/efistub: Don't bother enabling SEV in the EFI stub

 arch/x86/boot/compressed/sev.c          |  7 ----
 arch/x86/boot/startup/exports.h         |  1 +
 arch/x86/boot/startup/sev-shared.c      | 32 ++++++++++++++++++
 arch/x86/coco/sev/vc-shared.c           | 21 ------------
 arch/x86/include/asm/sev.h              |  2 --
 drivers/firmware/efi/libstub/x86-stub.c | 34 +++++++++++++-------
 6 files changed, 56 insertions(+), 41 deletions(-)

-- 
2.56.1.915.g69d5ec7298-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-04 17:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 15:48 [PATCH v2 0/3] x86/efistub: Omit SEV-SNP init from the stub Ard Biesheuvel
2026-12-04 15:48 ` [PATCH v2 1/3] x86/efistub: Obtain SEV CC blob address " Ard Biesheuvel
2026-12-04 15:48 ` [PATCH v2 2/3] x86/sev: Check for SVSM GHCB event support in svsm_setup_ca() Ard Biesheuvel
2026-12-04 16:41   ` sashiko-bot
2026-12-04 15:48 ` [PATCH v2 3/3] x86/efistub: Don't bother enabling SEV in the EFI stub Ard Biesheuvel
2026-12-04 17:11   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox