Skip to content

xen: Break multiboot (v1) dependency and add multiboot2 support

Daniel Kiper xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest18 patches 42 repliesIn review
  2. v316 patches 35 repliesSuperseded
  3. v25 patches 20 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC7 patches31 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18xen/makefile: clean target should remove xen.efi binaryxen/Makefile+1 -10 replies
2/18x86/boot: fix reloc.S build dependenciesxen/arch/x86/boot/Makefile xen/arch/x86/boot/build32.mk+7 -25 replies
3/18x86: define cmdline_cook() loader_name argument as a constxen/arch/x86/setup.c+1 -10 replies
4/18x86/boot: use constant in head.S instead of hardcoded valuexen/arch/x86/boot/head.S xen/arch/x86/x86_64/asm-offsets.c+4 -15 replies
5/18x86/boot/reloc: create generic alloc and copy functionsxen/arch/x86/boot/reloc.c+33 -193 replies
6/18x86: introduce MultiBoot Data (MBD) typexen/arch/x86/Makefile xen/arch/x86/boot/Makefile xen/arch/x86/boot/cmdline.S +9 more+241 -521 reply
7/18x86/efi: add place_string_u32() functionxen/arch/x86/efi/efi-boot.h+19 -100 replies
8/18x86: introduce boot_info structurexen/arch/x86/boot/x86_64.S xen/arch/x86/boot_info.c xen/arch/x86/efi/efi-boot.h +4 more+96 -31 reply
9/18x86: move boot_loader_name from mbi to boot_infoxen/arch/x86/boot_info.c xen/arch/x86/efi/efi-boot.h xen/arch/x86/setup.c +2 more+16 -161 reply
10/18x86: move cmdline from mbi to boot_infoxen/arch/x86/boot_info.c xen/arch/x86/efi/efi-boot.h xen/arch/x86/setup.c +2 more+12 -141 reply
11/18x86: move legacy BIOS memory map stuff to boot_infoxen/arch/x86/boot_info.c xen/arch/x86/efi/efi-boot.h xen/arch/x86/setup.c +3 more+135 -981 reply
12/18x86: move modules data from mbi to boot_info and remove mbixen/arch/x86/boot/x86_64.S xen/arch/x86/boot_info.c xen/arch/x86/domain_build.c +10 more+153 -1712 replies
13/18x86: move EFI memory map stuff to boot_infoxen/arch/x86/boot_info.c xen/common/efi/efi.h xen/common/efi/runtime.c +1 more+24 -50 replies
14/18x86: move MPS, ACPI and SMBIOS data to boot_infoxen/arch/x86/boot_info.c xen/arch/x86/dmi_scan.c xen/arch/x86/mpparse.c +4 more+61 -181 reply
15/18x86: move video data to boot_infoxen/arch/x86/boot_info.c xen/arch/x86/efi/efi-boot.h xen/arch/x86/platform_hypercall.c +7 more+157 -1571 reply
16/18x86: move HDD data to boot_infoxen/arch/x86/boot_info.c xen/arch/x86/efi/efi-boot.h xen/arch/x86/platform_hypercall.c +4 more+56 -281 reply
17/18x86/boot: use %ecx instead of %eaxxen/arch/x86/boot/head.S+14 -130 replies
18/18xen/x86: add multiboot2 protocol supportxen/arch/x86/boot/Makefile xen/arch/x86/boot/head.S xen/arch/x86/boot/reloc.c +2 more+401 -121 reply

Reviews trailers per patch

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

PatchAndrew Cooper
1/18
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18R-b
11/18
12/18
13/18
14/18
15/18R-b
16/18R-b
17/18R-b
18/18

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

Read the v4 thread

Cover letter [PATCH for-xen-4.5 v4 00/18] xen: Break multiboot (v1) dependency and add multiboot2 support

Hi all,

This patch series breaks multiboot (v1) protocol dependency and adds multiboot2 support. It lays down the foundation for EFI + GRUB2 + Xen development. Detailed description of ideas and thoughts you will find in commit message for every patch. If something is not obvious please drop me a line.

I took into account all suggestions sent to me up until now.

ARM build has been tested. However, I am not able to test generated binaries because I do not have a required hardware under my feet. Could you do some tests guys?

This is my last attempt to have this series in 4.5. If it will be not accepted for 4.5 I will continue multiboot2 + EFI development on the base of this patch series. Now I am almost sure that we are going in right direction. I hope that I will be able to post multiboot2 + EFI patches in about 1 month.

Daniel

 xen/Makefile                      |    2 +-
 xen/arch/x86/Makefile             |    1 +
 xen/arch/x86/boot/Makefile        |    8 +-
 xen/arch/x86/boot/build32.mk      |    3 +-
 xen/arch/x86/boot/cmdline.S       |    9 +-
 xen/arch/x86/boot/head.S          |  157 ++++++++++++++++++++++++++++++-----
 xen/arch/x86/boot/reloc.c         |  223 ++++++++++++++++++++++++++++++++++++++++---------
 xen/arch/x86/boot/x86_64.S        |   10 ++-
 xen/arch/x86/boot_info.c          |  257 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 xen/arch/x86/dmi_scan.c           |   11 ++-
 xen/arch/x86/domain_build.c       |   24 +++---
 xen/arch/x86/efi/efi-boot.h       |  173 +++++++++++++++++++-------------------
 xen/arch/x86/microcode.c          |   39 ++++-----
 xen/arch/x86/mpparse.c            |   13 ++-
 xen/arch/x86/platform_hypercall.c |   17 ++--
 xen/arch/x86/setup.c              |  369 +++++++++++++++++++++++++++-------------------------------------------------------
 xen/arch/x86/x86_64/asm-offsets.c |   15 +++-
 xen/common/efi/boot.c             |    1 -
 xen/common/efi/efi.h              |   11 +++
 xen/common/efi/runtime.c          |   55 +++++++++++--
 xen/drivers/acpi/osl.c            |   13 ++-
 xen/drivers/video/vesa.c          |    7 +-
 xen/drivers/video/vga.c           |   18 ++--
 xen/include/asm-x86/boot_info.h   |  124 ++++++++++++++++++++++++++++
 xen/include/asm-x86/config.h      |    2 -
 xen/include/asm-x86/e820.h        |    8 --
 xen/include/asm-x86/edd.h         |    6 --
 xen/include/asm-x86/mbd.h         |   80 ++++++++++++++++++
 xen/include/asm-x86/setup.h       |   12 +--
 xen/include/xen/efi.h             |    7 ++
 xen/include/xen/multiboot2.h      |  153 ++++++++++++++++++++++++++++++++++
 xen/include/xen/vga.h             |   18 ----
 xen/include/xsm/xsm.h             |   16 ++--
 xen/xsm/xsm_core.c                |    6 +-
 xen/xsm/xsm_policy.c              |   10 +--
 35 files changed, 1344 insertions(+), 534 deletions(-)

Daniel Kiper (18):
xen/makefile: clean target should remove xen.efi binary x86/boot: fix reloc.S build dependencies
x86: define cmdline_cook() loader_name argument as a const x86/boot: use constant in head.S instead of hardcoded value x86/boot/reloc: create generic alloc and copy functions
x86: introduce MultiBoot Data (MBD) type
x86/efi: add place_string_u32() function
x86: introduce boot_info structure
x86: move boot_loader_name from mbi to boot_info
x86: move cmdline from mbi to boot_info
x86: move legacy BIOS memory map stuff to boot_info
x86: move modules data from mbi to boot_info and remove mbi
x86: move EFI memory map stuff to boot_info
x86: move MPS, ACPI and SMBIOS data to boot_info
x86: move video data to boot_info
x86: move HDD data to boot_info
x86/boot: use %ecx instead of %eax
xen/x86: add multiboot2 protocol support