Skip to content

Change xen.efi build and add SHIM_LOCK verification into efi_multiboot2()

Daniel Kiper xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 41 repliesIn review
  2. v1 RFC7 patches 17 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8xen: calculate XEN_BUILD_TIME using XEN_BUILD_DATE valuexen/Makefile+1 -19 replies
2/8xen: introduce XEN_COMPILE_POSIX_TIMExen/Makefile xen/include/xen/compile.h.in+9 -63 replies
3/8xen/x86: manually build xen.mb.efi binaryxen/Makefile xen/arch/x86/Makefile xen/arch/x86/Rules.mk +5 more+221 -313 replies
4/8xen/x86: add some addresses to the Multiboot headerxen/arch/x86/boot/head.S+12 -11 reply
5/8xen/x86: add some addresses to the Multiboot2 headerxen/arch/x86/boot/head.S+15 -41 reply
6/8efi: split out efi_shim_lock()xen/common/efi/boot.c+13 -61 reply
7/8xen/x86/efi: Verify dom0 kernel with SHIM_LOCK protocol in efi_multiboot2()xen/arch/x86/boot/head.S xen/arch/x86/efi/efi-boot.h xen/arch/x86/efi/stub.c+35 -41 reply
8/8efi: drop original xen.efi code and build mechanismxen/Makefile xen/arch/arm/efi/efi-boot.h xen/arch/x86/Makefile +12 more+21 -82712 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/8
2/8
3/8
4/8A-b
5/8A-b
6/8A-b
7/8A-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] Change xen.efi build and add SHIM_LOCK verification into efi_multiboot2()

Hey,

As in subject... This way we get:
- one binary which can be loaded by the UEFI loader, Multiboot and Multiboot2 protocols,
- UEFI secure boot support when Xen is loaded via Multiboot2 protocol,
- if we wish, in the future we can drop xen/xen.gz and build xen.efi only,
- crash dumps generated by the xen.efi loaded from the EFI loader can be analyzed by crash tool,
- simpler code,
- simpler build,
- Xen build will no longer depend on ld i386pep support.

This patch series functionality does not depend on any GRUB2 changes. So, review can commence without any obstacles. Though the GRUB2 have to be changed to provide full verification chain. This will be discussed in separate thread.

Daniel

 xen/Makefile                    |   26 +++---
 xen/arch/arm/efi/efi-boot.h     |    4 -
 xen/arch/x86/Makefile           |   88 +-------------------
 xen/arch/x86/Rules.mk           |    2 +
 xen/arch/x86/boot/head.S        |  205 +++++++++++++++++++++++++++++++++++++++++++--
 xen/arch/x86/efi/Makefile       |   17 +---
 xen/arch/x86/efi/buildid.ihex   |    3 -
 xen/arch/x86/efi/check.c        |    4 -
 xen/arch/x86/efi/efi-boot.h     |   84 ++++---------------
 xen/arch/x86/efi/mkreloc.c      |  384 ------------------------------------------------------------------------------------
 xen/arch/x86/efi/relocs-dummy.S |   11 ---
 xen/arch/x86/efi/stub.c         |   83 ------------------
 xen/arch/x86/xen.lds.S          |   95 ++++++---------------
 xen/common/efi/boot.c           |   21 +++--
 xen/common/version.c            |   51 ------------
 xen/include/xen/compile.h.in    |    1 +
 16 files changed, 277 insertions(+), 802 deletions(-)

Daniel Kiper (8):
xen: calculate XEN_BUILD_TIME using XEN_BUILD_DATE value
xen: introduce XEN_COMPILE_POSIX_TIME
xen/x86: manually build xen.mb.efi binary
xen/x86: add some addresses to the Multiboot header
xen/x86: add some addresses to the Multiboot2 header
efi: split out efi_shim_lock()
xen/x86/efi: Verify dom0 kernel with SHIM_LOCK protocol in efi_multiboot2()
efi: drop original xen.efi code and build mechanism

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel