Skip to content

x86/loader: secure boot support for direct kernel load

Gerd Hoffmann qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vl: fix qemu_validate_options() indentionsystem/vl.c+8 -80 replies
2/5x86/loader: only patch linux kernelshw/i386/x86-common.c+1 -10 replies
3/5x86/loader: read complete kernelhw/i386/x86-common.c+6 -50 replies
4/5x86/loader: expose unpatched kernelhw/i386/x86-common.c+3 -00 replies
5/5x86/loader: add -shim optionhw/core/machine.c hw/i386/x86-common.c include/hw/boards.h +2 more+53 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] x86/loader: secure boot support for direct kernel load

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-common.c | 32 ++++++++++++++++++++++++++------
 system/vl.c          | 25 +++++++++++++++++--------
 qemu-options.hx      |  7 +++++++
 5 files changed, 71 insertions(+), 14 deletions(-)
Signature · 1 line
2.46.0