Skip to content

kexec: Add support for UKI format kernel

Pingfan Liu kexec 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

Add include/pe.h in makefile to fix 'make dist'
Rename default_initrd_fd to implicit_initrd_fd

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kexec: Introduce implicit_initrd_fd to pass internal initrd informationkexec/arch/arm64/kexec-image-arm64.c kexec/arch/x86_64/kexec-bzImage64.c kexec/kexec.c +1 more+7 -20 replies
2/3kexec: Introduce UKI image parserinclude/Makefile include/pe.h kexec/Makefile +2 more+232 -03 replies
3/3arm64: Support UKI image formatkexec/arch/arm64/kexec-arm64.c+1 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHv2 0/3] kexec: Add support for UKI format kernel

As a UEFI PE format kernel image becomes more popular, there is a need for kexec to reboot those kinds of images.

After the introduction of the UKI (another PE), at present, there are three competitive methods to support that goal, but all of them have pros and cons.[1] It seems that none of them can be accepted in the near future. Therefore, we are resorting to the user space kexec-tools to parse the UKI format for the time being.

By parsing the UKI, systemd-stub is stepped around and PCM will not affect the boot up of the second system.

[1]: https://github.com/rhkdump/kexec_uefi/blob/main/overview.md#the-competitive-solutions

Cc Simon Horman <[email protected]>
Cc Eric Biederman <[email protected]>
Cc Baoquan He <[email protected]>
Cc Dave Young <[email protected]>
Cc Ard Biesheuvel <[email protected]>
Cc Jan Hendrik Farr <[email protected]>
Cc Philipp Rudo <[email protected]>
Cc Lennart Poettering <[email protected]>

---
v1 -> v2:
Add include/pe.h in makefile to fix 'make dist'
Rename default_initrd_fd to implicit_initrd_fd

Pingfan Liu (3):
kexec: Introduce implicit_initrd_fd to pass internal initrd
information
kexec: Introduce UKI image parser
arm64: Support UKI image format

 include/Makefile                     |   1 +
 include/pe.h                         | 104 +++++++++++++++++++++++
 kexec/Makefile                       |   1 +
 kexec/arch/arm64/kexec-arm64.c       |   1 +
 kexec/arch/arm64/kexec-image-arm64.c |   3 +-
 kexec/arch/x86_64/kexec-bzImage64.c  |   3 +-
 kexec/kexec-uki.c                    | 122 +++++++++++++++++++++++++++
 kexec/kexec.c                        |   2 +
 kexec/kexec.h                        |   5 ++
 9 files changed, 240 insertions(+), 2 deletions(-)
 create mode 100644 include/pe.h
 create mode 100644 kexec/kexec-uki.c
Signature · 7 lines
2.41.0


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec