Skip to content

RFC Allows the usage of xen_hypervisor and xen_module on x86_64

Frediano Ziglio via Grub-devel grub-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5kern/list: Add a grub_list_length functiongrub-core/kern/list.c include/grub/list.h+14 -00 replies
2/5kern/list: Add a grub_list_append functiongrub-core/kern/list.c include/grub/list.h+11 -00 replies
3/5arm64/xen: Allows to use xen_hypervisor and xen_module on x86_64-efigrub-core/Makefile.core.def grub-core/loader/arm64/xen_boot.c+15 -04 replies
4/5arm64/xen: Use LoadFile2 protocol for Xen bootgrub-core/loader/arm64/xen_boot.c include/grub/efi/api.h+176 -15 replies
5/5arm64/xen: Allows to use kernel command line from first modulegrub-core/loader/arm64/xen_boot.c+24 -12 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/5] Allows the usage of xen_hypervisor and xen_module on x86_64

Currently xen_hypervisor and xen_module commands are available only for ARM64 EFI.
For x86_64 if the Xen format is portable executable there's no way to pass multiple modules (the feature is available using multiboot2 but only for ELF files).
So instead on adding new GRUB commands reuse the already available ones.
The modules are passed using LoadFile2 already used to pass initrd to Linux kernel.
An extension allows to pass also kernel file.
To pass command lines uses LoadOptions, EFI code already handles passing Xen and kernel command lines using LoadOptions.

Frediano Ziglio (5):
kern/list: Add a grub_list_length function
kern/list: Add a grub_list_append function
arm64/xen: Allows to use xen_hypervisor and xen_module on x86_64-efi arm64/xen: Use LoadFile2 protocol for Xen boot
arm64/xen: Allows to use kernel command line from first module

 grub-core/Makefile.core.def       |   2 +
 grub-core/kern/list.c             |  22 ++++
 grub-core/loader/arm64/xen_boot.c | 208 +++++++++++++++++++++++++++++-
 include/grub/efi/api.h            |   5 +
 include/grub/list.h               |   3 +
 5 files changed, 239 insertions(+), 1 deletion(-)
Signature · 7 lines
2.43.0


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel