Skip to content

Fix -kernel with SeaBIOS

Alexander Graf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Make fw_cfg interface 32-bit awarehw/fw_cfg.c hw/fw_cfg.h+5 -55 replies
2/6Introduce copy_romhw/loader.c hw/loader.h+39 -02 replies
3/6Convert multiboot to fw_cfg backed data storagehw/fw_cfg.h hw/pc.c pc-bios/optionrom/multiboot.S+94 -310 replies
4/6Move common option rom code to header filepc-bios/optionrom/multiboot.S pc-bios/optionrom/optionrom.h+110 -760 replies
5/6Convert linux bootrom to external rom and fw_cfghw/fw_cfg.h hw/pc.c pc-bios/optionrom/Makefile +1 more+172 -1040 replies
6/6Add linuxboot to BLOBSMakefile+1 -10 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/6] Fix -kernel with SeaBIOS

SeaBIOS clears RAM between we write our -kernel image to RAM and the int19 handler gets triggered.

So in order to work around that, I sat down and implemented Avi's suggestion of "downloading" all blobs in runtime from the fw_cfg interface

Thanks to glommer who talked me into doing it ;-).

Alexander Graf (6):
Make fw_cfg interface 32-bit aware Introduce copy_rom
Convert multiboot to fw_cfg backed data storage Move common option rom code to header file Convert linux bootrom to external rom and fw_cfg Add linuxboot to BLOBS

 Makefile                      |    2 +-
 hw/fw_cfg.c                   |    8 +-
 hw/fw_cfg.h                   |   13 +++-
 hw/loader.c                   |   38 +++++++++
 hw/loader.h                   |    1 +
 hw/pc.c                       |  169 +++++++++++++----------------------------
 pc-bios/optionrom/Makefile    |    2 +-
 pc-bios/optionrom/linuxboot.S |  140 ++++++++++++++++++++++++++++++++++
 pc-bios/optionrom/multiboot.S |  108 ++++++++++-----------------
 pc-bios/optionrom/optionrom.h |  107 ++++++++++++++++++++++++++
 10 files changed, 396 insertions(+), 192 deletions(-)
 create mode 100644 pc-bios/optionrom/linuxboot.S
 create mode 100644 pc-bios/optionrom/optionrom.h