Skip to content

Interactive Boot Menu for DASD and SCSI Guests on s390x

Collin L. Walling qemu-devel 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest13 patches 4 repliesIn review
  2. v813 patches 24 repliesSuperseded
  3. v712 patches 22 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v612 patches15 repliesSuperseded
v512 patches24 repliesSuperseded
v410 patches27 repliesSuperseded
v38 patches22 repliesSuperseded
v25 patches17 repliesSuperseded
v15 patches20 repliesSuperseded

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13s390-ccw: refactor boot map table codepc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/bootmap.h+37 -340 replies
2/13s390-ccw: refactor eckd_block_num to use CHSpc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/bootmap.h+20 -160 replies
3/13s390-ccw: refactor IPL structspc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/bootmap.h+27 -220 replies
4/13s390-ccw: update libcpc-bios/s390-ccw/Makefile pc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/bootmap.h +4 more+129 -450 replies
5/13s390-ccw: move auxiliary IPL data to separate locationhw/s390x/ipl.c hw/s390x/ipl.h pc-bios/s390-ccw/iplb.h +1 more+61 -62 replies
6/13s390-ccw: parse and set boot menu optionshw/s390x/ipl.c hw/s390x/ipl.h pc-bios/s390-ccw/iplb.h+66 -40 replies
7/13s390-ccw: set up interactive boot menu parameterspc-bios/s390-ccw/Makefile pc-bios/s390-ccw/main.c pc-bios/s390-ccw/menu.c +1 more+50 -10 replies
8/13s390-ccw: read stage2 boot loader data to find menupc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/bootmap.h pc-bios/s390-ccw/menu.c +1 more+122 -70 replies
9/13s390-ccw: print zipl boot menupc-bios/s390-ccw/menu.c+32 -10 replies
10/13s390-ccw: read user input for boot index via the SCLP consolepc-bios/s390-ccw/menu.c pc-bios/s390-ccw/s390-ccw.h pc-bios/s390-ccw/sclp.c +1 more+170 -20 replies
11/13s390-ccw: set cp_receive mask only when needed and consume pending service irqspc-bios/s390-ccw/menu.c pc-bios/s390-ccw/s390-ccw.h pc-bios/s390-ccw/sclp.c+10 -60 replies
12/13s390-ccw: use zipl values when no boot menu options are presenthw/s390x/ipl.c hw/s390x/ipl.h pc-bios/s390-ccw/iplb.h +2 more+24 -20 replies
13/13s390-ccw: interactive boot menu for scsihw/s390x/ipl.c pc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/main.c +2 more+28 -01 reply

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchThomas HuthJanosch FrankChristian Borntraeger
1/13R-b
2/13R-b
3/13R-b A-b
4/13R-b R-b A-b
5/13R-b
6/13R-b R-b
7/13R-b
8/13R-b
9/13R-b
10/13R-b
11/13R-b
12/13R-b
13/13R-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.

Read the v9 thread

Cover letter [Qemu-devel] [PATCH v9 00/13] Interactive Boot Menu for DASD and SCSI Guests on s390x

--- [v9] ---

- only set boot menu opts if a bootindex was specified on cmd

- Menus for guests with an IPL device that chooses to use the SCSI scheme are only enabled explicitly for -boot menu=on options (i.e. it will appropriately and cleanly ignore the zipl flag)

--- [Summary] ---

These patches implement a boot menu for ECKD DASD and SCSI guests on s390x. The menu will only appear if the disk has been configured for IPL with the zIPL tool and with the following QEMU command line options:

-boot menu=on[,splash-time=X] and/or -machine loadparm='prompt'

The following must be specified for the device to be IPL'd from:

    -device ...,bootindex=1

or via the following libvirt domain xml:

    <os>
      <bootmenu enable='yes' timeout='X'/>
    </os>

    or
    
    <disk>
      ...
      <boot order='1' loadparm='PROMPT'/>
    </disk>

Where X is some positive integer representing time in milliseconds.

<boot order='1' ... > must be specified for the device to be IPL'd from

A loadparm other than 'prompt' will disable the menu and just boot the specified entry.

If no boot options are specified, we will attempt to use the values provided by zipl (ECKD DASD only).

Collin L. Walling (13):
s390-ccw: refactor boot map table code
s390-ccw: refactor eckd_block_num to use CHS
s390-ccw: refactor IPL structs
s390-ccw: update libc
s390-ccw: move auxiliary IPL data to separate location
s390-ccw: parse and set boot menu options
s390-ccw: set up interactive boot menu parameters
s390-ccw: read stage2 boot loader data to find menu
s390-ccw: print zipl boot menu
s390-ccw: read user input for boot index via the SCLP console
s390-ccw: set cp_receive mask only when needed and consume pending
service irqs
s390-ccw: use zipl values when no boot menu options are present
s390-ccw: interactive boot menu for scsi

 hw/s390x/ipl.c              |  76 +++++++++++++-
 hw/s390x/ipl.h              |  31 +++++-
 pc-bios/s390-ccw/Makefile   |   2 +-
 pc-bios/s390-ccw/bootmap.c  | 184 +++++++++++++++++++++++---------
 pc-bios/s390-ccw/bootmap.h  |  91 ++++++++++------
 pc-bios/s390-ccw/iplb.h     |  24 ++++-
 pc-bios/s390-ccw/libc.c     |  88 ++++++++++++++++
 pc-bios/s390-ccw/libc.h     |  37 ++++++-
 pc-bios/s390-ccw/main.c     |  49 ++++++---
 pc-bios/s390-ccw/menu.c     | 249 ++++++++++++++++++++++++++++++++++++++++++++
 pc-bios/s390-ccw/s390-ccw.h |  10 ++
 pc-bios/s390-ccw/sclp.c     |  39 ++++---
 pc-bios/s390-ccw/virtio.c   |   2 +-
 13 files changed, 756 insertions(+), 126 deletions(-)
 create mode 100644 pc-bios/s390-ccw/libc.c
 create mode 100644 pc-bios/s390-ccw/menu.c
Signature · 1 line
2.7.4