Skip to content

Support EFI multiboot loading using PE binary

Frediano Ziglio xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 7 repliesIn review

Changes in v2 from the cover letter

- Changed title, apparently this is a kind of new mode;
- address lot of comments (see "Changes" in other messages).

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86: Put trampoline in .init.data sectionxen/arch/x86/boot/head.S+2 -00 replies
2/5x86: Set xen_phys_start and trampoline_xen_phys_start earlierxen/arch/x86/boot/head.S+5 -01 reply
3/5x86: Force proper gdt_boot_base settingxen/arch/x86/boot/head.S+10 -81 reply
4/5x86: Compensate relocation in case of EFIxen/arch/x86/boot/head.S+2 -11 reply
5/5x86: Rollback relocation in case of EFI multibootxen/arch/x86/boot/Makefile xen/arch/x86/boot/efi-reloc-image.c xen/arch/x86/boot/efi-reloc-image.h +2 more+168 -671 reply

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] Support EFI multiboot loading using PE binary

Testing this feature in preparation for UEFI CA memory mitigation requirements I found some issues causing the loading to fail and other minor issues.
Details in series commit messages.
This is adding an additional way to boot Xen, using GrUB2+EFI (xen.efi:__efi64_mb2_start).

Changes since v1:
- Changed title, apparently this is a kind of new mode;
- address lot of comments (see "Changes" in other messages).

Frediano Ziglio (5):
x86: Put trampoline in .init.data section
x86: Set xen_phys_start and trampoline_xen_phys_start earlier
x86: Force proper gdt_boot_base setting
x86: Compensate relocation in case of EFI
x86: Rollback relocation in case of EFI multiboot

 xen/arch/x86/boot/Makefile          |  2 +-
 xen/arch/x86/boot/efi-reloc-image.c | 40 ++++++++++++++
 xen/arch/x86/boot/efi-reloc-image.h | 85 +++++++++++++++++++++++++++++
 xen/arch/x86/boot/head.S            | 72 ++++++++++++++++++------
 xen/arch/x86/efi/efi-boot.h         | 64 ++--------------------
 5 files changed, 187 insertions(+), 76 deletions(-)
 create mode 100644 xen/arch/x86/boot/efi-reloc-image.c
 create mode 100644 xen/arch/x86/boot/efi-reloc-image.h
Signature · 1 line
2.45.2