Skip to content

Add multiboot support (x86)

Alexander Graf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Change bochs bios init orderhw/pc.c+6 -60 replies
2/4Expose fw_cfghw/pc.c target-i386/cpu.h+8 -33 replies
3/4Multiboot supporthw/pc.c pc-bios/multiboot/multiboot.S+446 -80 replies
4/4Multiboot build systempc-bios/multiboot/Makefile pc-bios/multiboot/signrom.c+120 -05 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] Add multiboot support (x86)

This patch implements support for Multiboot on x86 for -kernel. Multiboot is a "new" approach to get rid of different bootloaders, providing a unified interface for the kernel. It supports command line options and kernel modules.

The two probably best known projects using multiboot are Xen and GNU Hurd.

This implementation should be mostly feature-complete. It is missing VBE extensions, but as no system uses them currently it does not really hurt.

To use multiboot, specify the kernel as -kernel option. Modules should be given as -initrd options, seperated by a comma (,). -append also works.

Please bear in mind that grub also does gzip decompression, which qemu does not do yet. To run existing images, please ungzip them first.

The guest multiboot loader code is implemented as option rom using int 19. Parts of the work are based on efforts by Rene Rebe, who originally ported my code to int 19.

Also, Kevin Wolf helped a lot whenever I had a new version of this patch around.

Alexander Graf (4):
Change bochs bios init order
Expose fw_cfg
Multiboot support
Multiboot build system

 hw/pc.c                       |  241 ++++++++++++++++++++++++++++++++++++++---
 pc-bios/multiboot/Makefile    |   41 +++++++
 pc-bios/multiboot/multiboot.S |  229 +++++++++++++++++++++++++++++++++++++++
 pc-bios/multiboot/signrom.c   |   79 ++++++++++++++
 target-i386/cpu.h             |    3 +
 5 files changed, 577 insertions(+), 16 deletions(-)
 create mode 100644 pc-bios/multiboot/Makefile
 create mode 100644 pc-bios/multiboot/multiboot.S
 create mode 100644 pc-bios/multiboot/signrom.c