Skip to content

s390: vfio-ccw dasd ipl support

Jason J. Herne qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest16 patches 8 repliesIn review
  2. v415 patches 4 repliesSuperseded
  3. v316 patches 42 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v115 patches64 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16s390 vfio-ccw: Add bootindex property and IPLB dataMAINTAINERS hw/s390x/ipl.c hw/s390x/s390-ccw.c +3 more+86 -161 reply
2/16s390-bios: decouple cio setup from virtiopc-bios/s390-ccw/main.c+13 -70 replies
3/16s390-bios: decouple common boot logic from virtiopc-bios/s390-ccw/main.c+20 -80 replies
4/16s390-bios: Clean up cio.hpc-bios/s390-ccw/cio.h pc-bios/s390-ccw/s390-ccw.h+57 -650 replies
5/16s390-bios: Decouple channel i/o logic from virtiopc-bios/s390-ccw/Makefile pc-bios/s390-ccw/cio.c pc-bios/s390-ccw/cio.h +5 more+53 -280 replies
6/16s390-bios: Map low core memorypc-bios/s390-ccw/main.c pc-bios/s390-ccw/s390-arch.h+92 -00 replies
7/16s390-bios: ptr2u32 and u32toptrpc-bios/s390-ccw/helper.h+31 -00 replies
8/16s390-bios: Support for running format-0/1 channel programspc-bios/s390-ccw/cio.c pc-bios/s390-ccw/cio.h pc-bios/s390-ccw/s390-ccw.h +1 more+301 -30 replies
9/16s390-bios: cio error handlingpc-bios/s390-ccw/cio.c pc-bios/s390-ccw/libc.h+246 -00 replies
10/16s390-bios: Extend find_dev() for non-virtio devicespc-bios/s390-ccw/main.c+11 -50 replies
11/16s390-bios: Factor finding boot device out of virtio code pathpc-bios/s390-ccw/main.c tests/boot-serial-test.c+47 -400 replies
12/16s390-bios: Refactor virtio to run channel programs via ciopc-bios/s390-ccw/virtio.c+27 -300 replies
13/16s390-bios: Use control unit type to determine boot methodpc-bios/s390-ccw/main.c pc-bios/s390-ccw/netmain.c pc-bios/s390-ccw/virtio.c+15 -30 replies
14/16s390-bios: Add channel command codes/structs needed for dasd-iplpc-bios/s390-ccw/cio.h+23 -00 replies
15/16s390-bios: Support booting from real dasd deviceMAINTAINERS docs/devel/s390-dasd-ipl.txt pc-bios/s390-ccw/Makefile +4 more+404 -10 replies
16/16s390-bios: Use control unit type to find bootable devicespc-bios/s390-ccw/main.c+28 -101 reply

Reviews trailers per patch

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

PatchHalil PasicCollin WallingThomas HuthFarhan AliCornelia Huck
1/16A-b R-b R-b
2/16A-b R-b R-b R-b R-b
3/16A-b R-b R-b R-b R-b
4/16R-b R-b R-b A-b
5/16R-b R-b
6/16R-b A-b
7/16R-b A-b
8/16R-b R-b
9/16R-b
10/16A-b R-b
11/16R-b R-b
12/16A-b R-b
13/16R-b R-b
14/16A-b A-b
15/16R-b
16/16R-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 5 reviewers.

Read the v6 thread

Cover letter [Qemu-devel] [PATCH v6 00/16] s390: vfio-ccw dasd ipl support

This is to support booting from vfio-ccw dasd devices. We basically implement the real hardware ipl procedure. This allows for booting Linux guests on vfio-ccw devices.

vfio-ccw's channel program prefetch algorithm complicates ipl because most ipl channel programs dynamically modify themselves. Details on the ipl process and how we worked around this issue can be found in docs/devel/s390-dasd-ipl.txt.

Changelog
==========
v6
- Added patch #16 to fix regression whereby we attempted to boot from console devices when no default boot device was specified.
- Bug fix: Referencing a byte past end of sense data status array
- Reorganized patch order slightly
- Other misc wording/spelling fixups

Jason J. Herne (16):
s390 vfio-ccw: Add bootindex property and IPLB data
s390-bios: decouple cio setup from virtio
s390-bios: decouple common boot logic from virtio
s390-bios: Clean up cio.h
s390-bios: Decouple channel i/o logic from virtio
s390-bios: Map low core memory
s390-bios: ptr2u32 and u32toptr
s390-bios: Support for running format-0/1 channel programs
s390-bios: cio error handling
s390-bios: Extend find_dev() for non-virtio devices
s390-bios: Factor finding boot device out of virtio code path
s390-bios: Refactor virtio to run channel programs via cio
s390-bios: Use control unit type to determine boot method
s390-bios: Add channel command codes/structs needed for dasd-ipl
s390-bios: Support booting from real dasd device
s390-bios: Use control unit type to find bootable devices

 MAINTAINERS                  |   2 +
 docs/devel/s390-dasd-ipl.txt | 133 ++++++++++++++
 hw/s390x/ipl.c               |  61 +++++--
 hw/s390x/s390-ccw.c          |   9 +
 hw/vfio/ccw.c                |   2 +-
 include/hw/s390x/s390-ccw.h  |   1 +
 include/hw/s390x/vfio-ccw.h  |  28 +++
 pc-bios/s390-ccw/Makefile    |   2 +-
 pc-bios/s390-ccw/cio.c       | 423 +++++++++++++++++++++++++++++++++++++++++++
 pc-bios/s390-ccw/cio.h       | 270 +++++++++++++++++++++------
 pc-bios/s390-ccw/dasd-ipl.c  | 235 ++++++++++++++++++++++++
 pc-bios/s390-ccw/dasd-ipl.h  |  16 ++
 pc-bios/s390-ccw/helper.h    |  31 ++++
 pc-bios/s390-ccw/libc.h      |  11 ++
 pc-bios/s390-ccw/main.c      | 185 +++++++++++++------
 pc-bios/s390-ccw/netboot.mak |   2 +-
 pc-bios/s390-ccw/netmain.c   |   2 +
 pc-bios/s390-ccw/s390-arch.h | 103 +++++++++++
 pc-bios/s390-ccw/s390-ccw.h  |  10 +-
 pc-bios/s390-ccw/start.S     |  29 +++
 pc-bios/s390-ccw/virtio.c    |  81 +++------
 tests/boot-serial-test.c     |   2 +-
 22 files changed, 1438 insertions(+), 200 deletions(-)
 create mode 100644 docs/devel/s390-dasd-ipl.txt
 create mode 100644 include/hw/s390x/vfio-ccw.h
 create mode 100644 pc-bios/s390-ccw/cio.c
 create mode 100644 pc-bios/s390-ccw/dasd-ipl.c
 create mode 100644 pc-bios/s390-ccw/dasd-ipl.h
 create mode 100644 pc-bios/s390-ccw/helper.h
 create mode 100644 pc-bios/s390-ccw/s390-arch.h

--
2.7.4