Implement network booting in the s390-ccw BIOS
Status from this message: thanks applied.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest11 patches 4 repliesApplied
- v411 patches 9 repliesSuperseded
- v310 patches 15 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 RFC | 8 patches | 13 replies | Superseded | |
| v1 RFC | 14 patches | 20 replies | Superseded |
Changes in v5 from the cover letter
- Fixed problem when compiling the code natively on a s390x machine (do not try to re-use the Makefile.inc files from SLOF, and define our own rules instead)
- Fixed typos that Cornelia discovered while reviewing v4
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | pc-bios/s390-ccw: Move libc functions to separate headerpc-bios/ pc-bios/ pc-bios/ +4 more | +51 | 0 replies | |
| 2/11 | pc-bios/s390-ccw: Move ebc2asc to sclp.cpc-bios/ pc-bios/ | +11 | 0 replies | |
| 3/11 | pc-bios/s390-ccw: Move virtio-block related functions into a separate filepc-bios/ pc-bios/ pc-bios/ +3 more | +311 | 0 replies | |
| 4/11 | pc-bios/s390-ccw: Add a write() function for stdiopc-bios/ | +14 | 0 replies | |
| 5/11 | pc-bios/s390-ccw: Move byteswap functions to a separate headerpc-bios/ pc-bios/ pc-bios/ | +31 | 0 replies | |
| 6/11 | pc-bios/s390-ccw: Remove unused structs from virtio.hpc-bios/ | +0 | 0 replies | |
| 7/11 | pc-bios/s390-ccw: Add code for virtio feature negotiationpc-bios/ pc-bios/ pc-bios/ | +20 | 0 replies | |
| 8/11 | roms/SLOF: Update submodule to latest statusroms/ | +1 | 0 replies | |
| 9/11 | pc-bios/s390-ccw: Add core files for the network bootloading programpc-bios/ pc-bios/ pc-bios/ | +192 | 0 replies | |
| 10/11 | pc-bios/s390-ccw: Add virtio-net driver codepc-bios/ pc-bios/ pc-bios/ +1 more | +151 | 0 replies | |
| 11/11 | pc-bios/s390-ccw: Link libnet into the netboot image and do the TFTP loadpc-bios/ pc-bios/ | +238 | 0 replies |
Reviews trailers per patch
10 of 11 patches have a Reviewed-by or Acked-by.
| Patch | Christian Borntraeger | Cornelia Huck | David Hildenbrand |
|---|---|---|---|
| 1/11 | R-b | R-b | |
| 2/11 | A-b | R-b | |
| 3/11 | R-b | R-b | |
| 4/11 | A-b | R-b | |
| 5/11 | R-b | A-b | |
| 6/11 | A-b | ||
| 7/11 | R-b | ||
| 8/11 | |||
| 9/11 | R-b | ||
| 10/11 | R-b | ||
| 11/11 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [Qemu-devel] [PATCH v5 00/11] Implement network booting in the s390-ccw BIOS
It's already possible to do a network boot of an s390x guest with an external netboot image based on a Linux installation, but it would be much more convenient if the s390-ccw firmware supported network booting right out of the box, without the need to assemble such an external image first.
This patch series now introduces a s390-netboot.img that can be used for network booting via DHCP and TFTP by re-using the networking stack from the SLOF firmware (see https://github.com/aik/SLOF/ for details), and adds a driver for virtio-net-ccw devices.
The code can only be built if the roms/SLOF submodule has been checked out (there is a sanity check for this in the Makefile). Once it has been built, you can download a combined kernel + initrd image via TFTP by starting QEMU for example with:
qemu-system-s390x ... -device virtio-net,netdev=n1,bootindex=1 \
-netdev user,id=n1,tftp=/path/to/tftp,bootfile=kernel.img
Note that this version does not support downloading via config files (i.e. pxelinux config files or .INS config files) yet. This will be added later.
v5:
- Fixed problem when compiling the code natively on a s390x machine (do not try to re-use the Makefile.inc files from SLOF, and define our own rules instead)
- Fixed typos that Cornelia discovered while reviewing v4
v4:
- Cosmetic clean-ups according to the review feedback from v3
- Fixed bug in the find_dev() function (spotted by Cornelia in v3)
- Added an additional patch to remove some unused structs from virtio.h
v3:
- Adressed the review feedback from v2
- The last remaining SLOF patch has now been merged (big thanks to Alexey!), so not sending this as RFC anymore - it is ready now for integration, I think.
v2:
- Put the network boot loader into a separate s390-netboot.img binary instead of linking it directly into the s390-ccw firmware.
- Use the SLOF sources from the roms/SLOF/ submodule instead of copying them into the pc-bios/s390-ccw folder
- Removed the .INS config file loading code for now - only support combined kernel + initrd images in this initial implementation.
Thomas Huth (11):
pc-bios/s390-ccw: Move libc functions to separate header pc-bios/s390-ccw: Move ebc2asc to sclp.c
pc-bios/s390-ccw: Move virtio-block related functions into a separate
file
pc-bios/s390-ccw: Add a write() function for stdio pc-bios/s390-ccw: Move byteswap functions to a separate header pc-bios/s390-ccw: Remove unused structs from virtio.h pc-bios/s390-ccw: Add code for virtio feature negotiation roms/SLOF: Update submodule to latest status pc-bios/s390-ccw: Add core files for the network bootloading program pc-bios/s390-ccw: Add virtio-net driver code pc-bios/s390-ccw: Link libnet into the netboot image and do the TFTP
load
pc-bios/s390-ccw/Makefile | 13 +- pc-bios/s390-ccw/bootmap.c | 2 + pc-bios/s390-ccw/bootmap.h | 26 --- pc-bios/s390-ccw/bswap.h | 30 ++++ pc-bios/s390-ccw/libc.h | 45 +++++ pc-bios/s390-ccw/main.c | 14 +- pc-bios/s390-ccw/netboot.mak | 59 +++++++ pc-bios/s390-ccw/netmain.c | 361 +++++++++++++++++++++++++++++++++++++++ pc-bios/s390-ccw/s390-ccw.h | 33 +--- pc-bios/s390-ccw/sclp.c | 37 ++-- pc-bios/s390-ccw/virtio-blkdev.c | 296 ++++++++++++++++++++++++++++++++ pc-bios/s390-ccw/virtio-net.c | 135 +++++++++++++++ pc-bios/s390-ccw/virtio-scsi.c | 1 + pc-bios/s390-ccw/virtio.c | 306 ++++----------------------------- pc-bios/s390-ccw/virtio.h | 46 ++--- roms/SLOF | 2 +- 16 files changed, 1018 insertions(+), 388 deletions(-) create mode 100644 pc-bios/s390-ccw/bswap.h create mode 100644 pc-bios/s390-ccw/libc.h create mode 100644 pc-bios/s390-ccw/netboot.mak create mode 100644 pc-bios/s390-ccw/netmain.c create mode 100644 pc-bios/s390-ccw/virtio-blkdev.c create mode 100644 pc-bios/s390-ccw/virtio-net.c
Signature · 1 line
1.8.3.1