Skip to content

s390x: Add Full Boot Order Support

[email protected] qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest19 patches 22 repliesIn review
  2. v419 patches 7 repliesSuperseded
  3. v319 patches 16 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v218 patches27 repliesSuperseded
v15 patches23 repliesSuperseded

Changes in v5 from the cover letter

- Fix a bug with per-deice loadparm support:
The machine loadparm is no longer overwritten by device values, which now allows an empty machine loadparm to propagate to later devices even if the primary boot device set an initial loadparm
- Fix two instances where changes were squashed into wrong patch
- Fix an instance where NULL_BLOCK_NR was returned instead of ERROR_BLOCK_NR
- Fix an instance of logical AND being used instead of bitwise AND
- Standardize all error values to be negative in all device type paths
- Minor stylistic changes and code simplification

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19hw/s390x/ipl: Provide more memory to the s390-ccw.img firmwarehw/s390x/ipl.c+9 -10 replies
2/19pc-bios/s390-ccw: Use the libc from SLOF and remove sclp printspc-bios/s390-ccw/Makefile pc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/bootmap.h +14 more+136 -3354 replies
3/19pc-bios/s390-ccw: Link the netboot code into the main s390-ccw.img binarypc-bios/s390-ccw/Makefile pc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/cio.h +6 more+24 -400 replies
4/19hw/s390x: Remove the possibility to load the s390-netboot.img binaryhw/s390x/ipl.c hw/s390x/ipl.h hw/s390x/s390-virtio-ccw.c +1 more+6 -720 replies
5/19pc-bios/s390-ccw: Merge netboot.mak into the main Makefilepc-bios/s390-ccw/Makefile pc-bios/s390-ccw/netboot.mak pc-bios/s390-netboot.img+46 -460 replies
6/19docs/system/s390x/bootdevices: Update the documentation about network bootingdocs/system/s390x/bootdevices.rst+7 -130 replies
7/19pc-bios/s390-ccw: Remove panics from ISO IPL pathpc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/bootmap.h pc-bios/s390-ccw/s390-ccw.h+65 -381 reply
8/19pc-bios/s390-ccw: Remove panics from ECKD IPL pathpc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/bootmap.h+130 -581 reply
9/19pc-bios/s390-ccw: Remove panics from SCSI IPL pathpc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/virtio-blkdev.c pc-bios/s390-ccw/virtio-scsi.c+164 -711 reply
10/19pc-bios/s390-ccw: Remove panics from DASD IPL pathpc-bios/s390-ccw/dasd-ipl.c pc-bios/s390-ccw/dasd-ipl.h+37 -310 replies
11/19pc-bios/s390-ccw: Remove panics from Netboot IPL pathpc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/netmain.c pc-bios/s390-ccw/s390-ccw.h +1 more+18 -91 reply
12/19pc-bios/s390-ccw: Enable failed IPL to return after errorpc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/cio.c pc-bios/s390-ccw/jump2ipl.c +5 more+108 -560 replies
13/19include/hw/s390x: Add include files for common IPL structshw/s390x/ipl.h include/hw/s390x/ipl/qipl.h pc-bios/s390-ccw/Makefile +1 more+130 -1830 replies
14/19s390x: Add individual loadparm assignment to CCW devicehw/s390x/ccw-device.c hw/s390x/ccw-device.h hw/s390x/ipl.c +5 more+102 -553 replies
15/19hw/s390x: Build an IPLB for each boot devicehw/s390x/ipl.c hw/s390x/ipl.h include/hw/s390x/ipl/qipl.h+105 -293 replies
16/19s390x: Rebuild IPLB for SCSI device directly from DIAG308hw/s390x/ipl.c hw/s390x/ipl.h include/hw/s390x/ipl/qipl.h +2 more+38 -700 replies
17/19pc-bios/s390x: Enable multi-device boot looppc-bios/s390-ccw/iplb.h pc-bios/s390-ccw/jump2ipl.c pc-bios/s390-ccw/main.c +1 more+57 -211 reply
18/19docs/system: Update documentation for s390x IPLdocs/system/bootindex.rst docs/system/s390x/bootdevices.rst+10 -60 replies
19/19tests/qtest: Add s390x boot order tests to cdrom-test.ctests/qtest/cdrom-test.c+24 -01 reply

Reviews trailers per patch

13 of 19 patches have a Reviewed-by or Acked-by.

PatchThomas Huth
1/19
2/19
3/19
4/19
5/19
6/19
7/19R-b
8/19R-b
9/19R-b
10/19R-b
11/19R-b
12/19R-b
13/19R-b
14/19R-b
15/19R-b
16/19A-b
17/19R-b
18/19R-b
19/19R-b

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

Read the v5 thread

Cover letter [PATCH v5 00/19] s390x: Add Full Boot Order Support

From: Jared Rossi <[email protected]>

changes v4 -> v5:
- Fix a bug with per-deice loadparm support:
The machine loadparm is no longer overwritten by device values, which now allows an empty machine loadparm to propagate to later devices even if the primary boot device set an initial loadparm
- Fix two instances where changes were squashed into wrong patch
- Fix an instance where NULL_BLOCK_NR was returned instead of ERROR_BLOCK_NR
- Fix an instance of logical AND being used instead of bitwise AND
- Standardize all error values to be negative in all device type paths
- Minor stylistic changes and code simplification

changes v3 -> v4:
- Ensure signed-ness of return values is appropriate
- Add missing newline character in replacements of sclp_print_int()
- Add a missing return in a SCSI error path
- Restore break that was incorrectly removed for Virtio CU devices
- Remove an extra/early return that caused probing to end early
- Convert "good" device to scsi-cd in a cdrom-test for better coverage
- Minor stylistic clean-ups and variable name clarifications

Jared Rossi (19):
hw/s390x/ipl: Provide more memory to the s390-ccw.img firmware pc-bios/s390-ccw: Use the libc from SLOF and remove sclp prints pc-bios/s390-ccw: Link the netboot code into the main s390-ccw.img
binary
hw/s390x: Remove the possibility to load the s390-netboot.img binary pc-bios/s390-ccw: Merge netboot.mak into the main Makefile docs/system/s390x/bootdevices: Update the documentation about network
booting
pc-bios/s390-ccw: Remove panics from ISO IPL path pc-bios/s390-ccw: Remove panics from ECKD IPL path pc-bios/s390-ccw: Remove panics from SCSI IPL path pc-bios/s390-ccw: Remove panics from DASD IPL path pc-bios/s390-ccw: Remove panics from Netboot IPL path pc-bios/s390-ccw: Enable failed IPL to return after error include/hw/s390x: Add include files for common IPL structs
s390x: Add individual loadparm assignment to CCW device hw/s390x: Build an IPLB for each boot device
s390x: Rebuild IPLB for SCSI device directly from DIAG308 pc-bios/s390x: Enable multi-device boot loop
docs/system: Update documentation for s390x IPL tests/qtest: Add s390x boot order tests to cdrom-test.c

 docs/system/bootindex.rst         |   7 +-
 docs/system/s390x/bootdevices.rst |  29 +-
 pc-bios/s390-ccw/netboot.mak      |  62 ----
 hw/s390x/ccw-device.h             |   2 +
 hw/s390x/ipl.h                    | 123 +-------
 include/hw/s390x/ipl/qipl.h       | 127 +++++++++
 pc-bios/s390-ccw/bootmap.h        |  20 +-
 pc-bios/s390-ccw/cio.h            |   2 +
 pc-bios/s390-ccw/dasd-ipl.h       |   2 +-
 pc-bios/s390-ccw/iplb.h           | 108 ++-----
 pc-bios/s390-ccw/libc.h           |  89 ------
 pc-bios/s390-ccw/s390-ccw.h       |  36 +--
 pc-bios/s390-ccw/virtio.h         |   3 +-
 hw/s390x/ccw-device.c             |  46 +++
 hw/s390x/ipl.c                    | 282 +++++++++---------
 hw/s390x/s390-virtio-ccw.c        |  28 +-
 hw/s390x/sclp.c                   |   9 +-
 pc-bios/s390-ccw/bootmap.c        | 455 ++++++++++++++++++++----------
 pc-bios/s390-ccw/cio.c            |  81 +++---
 pc-bios/s390-ccw/dasd-ipl.c       |  71 ++---
 pc-bios/s390-ccw/jump2ipl.c       |  22 +-
 pc-bios/s390-ccw/libc.c           |  88 ------
 pc-bios/s390-ccw/main.c           |  97 ++++---
 pc-bios/s390-ccw/menu.c           |  51 ++--
 pc-bios/s390-ccw/netmain.c        |  38 ++-
 pc-bios/s390-ccw/sclp.c           |   7 +-
 pc-bios/s390-ccw/virtio-blkdev.c  |  12 +-
 pc-bios/s390-ccw/virtio-net.c     |   7 +-
 pc-bios/s390-ccw/virtio-scsi.c    | 160 +++++++----
 pc-bios/s390-ccw/virtio.c         |  67 +++--
 target/s390x/diag.c               |   9 +-
 tests/qtest/cdrom-test.c          |  24 ++
 pc-bios/meson.build               |   1 -
 pc-bios/s390-ccw/Makefile         |  69 ++++-
 pc-bios/s390-netboot.img          | Bin 67232 -> 0 bytes
 35 files changed, 1158 insertions(+), 1076 deletions(-)
 delete mode 100644 pc-bios/s390-ccw/netboot.mak
 create mode 100644 include/hw/s390x/ipl/qipl.h
 delete mode 100644 pc-bios/s390-ccw/libc.h
 delete mode 100644 pc-bios/s390-ccw/libc.c
 delete mode 100644 pc-bios/s390-netboot.img
Signature · 1 line
2.45.1