All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] xen/efi: Make boot more flexible, especially with GRUB2
@ 2025-06-26 13:10 Frediano Ziglio
  2025-06-26 13:10 ` [PATCH v4 1/3] xen/efi: Handle cases where file didn't come from ESP Frediano Ziglio
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Frediano Ziglio @ 2025-06-26 13:10 UTC (permalink / raw)
  To: xen-devel
  Cc: Frediano Ziglio, Daniel P. Smith, Marek Marczykowski-Górecki,
	Jan Beulich

The combination of GRUB2, EFI and UKI allows potentially more flexibility.
For instance is possible to load xen.efi from a no ESP partition leaving
a boot loader like GRUB2 taking care of the file loading.
This however requires some changes in Xen to be less restrictive.
Specifically for GRUB2 these changes allows the usage of "chainloader"
command with UKI and reading xen.efi from no ESP (so no DeviceHandle
set) and usage of "linux" and "initrd" commands to load separately
the kernel (embedding using UKI) and initrd (using LoadFile2 protocol).

Changes since v1:
- keep read_file fatal when it was so;
- attempt to use LoadFile2 after trying object section;
- minor changes (see details on specific changes).

Changes since v2:
- update read_file style;
- added acked-by.

Changes since v3:
- style update;
- coherency changes for LoadFile2.

Frediano Ziglio (3):
  xen/efi: Handle cases where file didn't come from ESP
  xen/efi: Support loading initrd using GRUB2 LoadFile2 protocol
  xen/efi: Update error flow for read_file function

 xen/common/efi/boot.c     | 177 +++++++++++++++++++++++++++++---------
 xen/include/efi/efidevp.h |   2 +
 xen/include/efi/efiprot.h |  19 ++++
 3 files changed, 159 insertions(+), 39 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2025-06-26 15:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-26 13:10 [PATCH v4 0/3] xen/efi: Make boot more flexible, especially with GRUB2 Frediano Ziglio
2025-06-26 13:10 ` [PATCH v4 1/3] xen/efi: Handle cases where file didn't come from ESP Frediano Ziglio
2025-06-26 13:10 ` [PATCH v4 2/3] xen/efi: Support loading initrd using GRUB2 LoadFile2 protocol Frediano Ziglio
2025-06-26 13:10 ` [PATCH v4 3/3] xen/efi: Update error flow for read_file function Frediano Ziglio
2025-06-26 13:31   ` Jan Beulich
2025-06-26 13:41     ` Frediano Ziglio
2025-06-26 14:50       ` Jan Beulich
2025-06-26 14:57         ` Frediano Ziglio
2025-06-26 15:01           ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.