From: Ard Biesheuvel <ardb@kernel.org>
To: linux-efi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, x86@kernel.org,
Ard Biesheuvel <ardb@kernel.org>,
"Kiryl Shutsemau (Meta)" <kas@kernel.org>,
Borislav Petkov <bp@alien8.de>
Subject: [PATCH 0/3] Move memory acceptance x86 arch code into EFI stub
Date: Mon, 14 Sep 2026 20:37:46 +0200 [thread overview]
Message-ID: <20260914183745.37538-5-ardb@kernel.org> (raw)
This is a follow-up to [0].
Move arch_accept_memory(), which is only called by the EFI stub and
never by the decompressor on a non-EFI boot, into the EFI stub, and
avoid relying directly on decompressor APIs such as error().
Instead, call tdx_panic() on a failure to accept memory in a TDX guest.
This makes the decompressor's implementation of panic() obsolete, and
allows it to be removed. This is a prerequisite for dropping the
implementation of snprintf() from the EFI stub entirely, which is what
the series containing [0] implements.
[0] http://lore.kernel.org/r/20260909115530.1924665-13-ardb+git@google.com
Cc: Kiryl Shutsemau (Meta) <kas@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Ard Biesheuvel (3):
x86/tdx: Share tdx_panic() with the EFI stub
x86/boot: Move unaccepted memory handling out of the decompressor
x86/boot: Drop unused implementation of panic()
arch/x86/boot/compressed/error.c | 19 ---------
arch/x86/boot/compressed/error.h | 1 -
arch/x86/boot/compressed/mem.c | 42 --------------------
arch/x86/boot/compressed/sev.h | 2 -
arch/x86/coco/tdx/tdx-shared.c | 35 ++++++++++++++++
arch/x86/coco/tdx/tdx.c | 35 ----------------
arch/x86/include/asm/sev.h | 2 +
arch/x86/include/asm/shared/tdx.h | 1 +
drivers/firmware/efi/libstub/x86-stub.c | 40 +++++++++++++++++++
9 files changed, 78 insertions(+), 99 deletions(-)
base-commit: cee9395acd8043be0644b25c34bfa86623f2b935
--
2.47.3
next reply other threads:[~2026-09-14 18:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 18:37 Ard Biesheuvel [this message]
2026-09-14 18:37 ` [PATCH 1/3] x86/tdx: Share tdx_panic() with the " Ard Biesheuvel
2026-09-14 18:37 ` [PATCH 2/3] x86/boot: Move unaccepted memory handling out of the decompressor Ard Biesheuvel
2026-09-14 18:37 ` [PATCH 3/3] x86/boot: Drop unused implementation of panic() Ard Biesheuvel
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=20260914183745.37538-5-ardb@kernel.org \
--to=ardb@kernel.org \
--cc=bp@alien8.de \
--cc=kas@kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/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
all inboxes | Powered by JetHome®