Linux EFI development
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ardb+git@google.com>
To: linux-efi@vger.kernel.org
Cc: Ard Biesheuvel <ardb@kernel.org>, Borislav Petkov <bp@alien8.de>,
	 Tom Lendacky <thomas.lendacky@amd.com>,
	Ashish Kalra <Ashish.Kalra@amd.com>
Subject: [PATCH v2 0/3] x86/efistub: Omit SEV-SNP init from the stub
Date: Fri,  4 Dec 2026 16:48:43 +0100	[thread overview]
Message-ID: <20261204154842.414894-5-ardb+git@google.com> (raw)

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


             reply	other threads:[~2026-12-04 15:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 15:48 Ard Biesheuvel [this message]
2026-12-04 15:48 ` [PATCH v2 1/3] x86/efistub: Obtain SEV CC blob address from the stub 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204154842.414894-5-ardb+git@google.com \
    --to=ardb+git@google.com \
    --cc=Ashish.Kalra@amd.com \
    --cc=ardb@kernel.org \
    --cc=bp@alien8.de \
    --cc=linux-efi@vger.kernel.org \
    --cc=thomas.lendacky@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox