qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] x86/loader: secure boot support for direct kernel load
@ 2024-04-11  9:48 Gerd Hoffmann
  2024-04-11  9:48 ` [PATCH 1/5] vl: fix qemu_validate_options() indention Gerd Hoffmann
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Gerd Hoffmann @ 2024-04-11  9:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Richard Henderson, Marcel Apfelbaum,
	Michael S. Tsirkin, Philippe Mathieu-Daudé, Paolo Bonzini,
	Yanan Wang, Gerd Hoffmann

This series allows to boot linux kernels and other efi binaries via
direct kernel load with secure boot enabled.

The series adds two new fw_cfg files: 'etc/boot/kernel' contains the
kernel without modifications (no setup header patching), and
'etc/boot/shim' contains shim.

The path to the shim binary can be passed to qemu using the new '-shim'
command line switch.

This needs a companion patch series for tianocore which will put the new
fw_cfg files into use, a draft of that series can be found here:

https://github.com/kraxel/edk2/commits/devel/direct-secure-boot/

With everything in place it is possible to use direct kernel load with
secure boot enabled.

take care,
  Gerd

Gerd Hoffmann (5):
  vl: fix qemu_validate_options() indention
  x86/loader: only patch linux kernels
  x86/loader: read complete kernel
  x86/loader: expose unpatched kernel
  x86/loader: add -shim option

 include/hw/boards.h |  1 +
 hw/core/machine.c   | 20 ++++++++++++++++++++
 hw/i386/x86.c       | 32 ++++++++++++++++++++++++++------
 system/vl.c         | 25 +++++++++++++++++--------
 qemu-options.hx     |  7 +++++++
 5 files changed, 71 insertions(+), 14 deletions(-)

-- 
2.44.0



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

end of thread, other threads:[~2024-12-17 14:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-11  9:48 [PATCH 0/5] x86/loader: secure boot support for direct kernel load Gerd Hoffmann
2024-04-11  9:48 ` [PATCH 1/5] vl: fix qemu_validate_options() indention Gerd Hoffmann
2024-11-18 12:35   ` Philippe Mathieu-Daudé
2024-04-11  9:48 ` [PATCH 2/5] x86/loader: only patch linux kernels Gerd Hoffmann
2024-12-17 11:09   ` Michael Tokarev
2024-12-17 14:12     ` Gerd Hoffmann
2024-04-11  9:48 ` [PATCH 3/5] x86/loader: read complete kernel Gerd Hoffmann
2024-04-11  9:48 ` [PATCH 4/5] x86/loader: expose unpatched kernel Gerd Hoffmann
2024-06-02 13:26   ` Michael S. Tsirkin
2024-06-03  9:00     ` Gerd Hoffmann
2024-04-11  9:48 ` [PATCH 5/5] x86/loader: add -shim option Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).