Skip to content

s390x: Add support for virtio-blk-pci IPL device

[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 Latest15 patches 18 repliesIn review
  2. v415 patches 19 repliesSuperseded
  3. v314 patches 29 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v210 patches25 repliesSuperseded
v17 patches17 repliesSuperseded

Changes in v5 from the cover letter

- Fix incorrect switch/case for virtio block device ID
- Use target_s390x() instead of qemu_arch_available(QEMU_ARCH_S390X)
- Properly denote switch fallthrough
- Remove reduntant RC checks in PCI read/write

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15pc-bios/s390-ccw: Fix misattributed function prototypespc-bios/s390-ccw/bootmap.c pc-bios/s390-ccw/s390-ccw.h pc-bios/s390-ccw/virtio-blkdev.c +1 more+9 -60 replies
2/15pc-bios/s390-ccw: Remove redundant vring schid attributepc-bios/s390-ccw/virtio-blkdev.c pc-bios/s390-ccw/virtio-net.c pc-bios/s390-ccw/virtio.c +1 more+7 -90 replies
3/15pc-bios/s390-ccw: Always reset virtio device on failed boot attemptpc-bios/s390-ccw/main.c+2 -10 replies
4/15s390x: Remove duplicate definitions of IPL typeshw/s390x/ipl.h include/hw/s390x/ipl/qipl.h pc-bios/s390-ccw/iplb.h +2 more+21 -130 replies
5/15pc-bios/s390-ccw: Store device type independent of sense datapc-bios/s390-ccw/main.c pc-bios/s390-ccw/virtio-blkdev.c pc-bios/s390-ccw/virtio.c +1 more+33 -200 replies
6/15pc-bios/s390-ccw: Split virtio-ccw and generic virtiopc-bios/s390-ccw/Makefile pc-bios/s390-ccw/main.c pc-bios/s390-ccw/netmain.c +9 more+332 -2211 reply
7/15include/hw/s390x: Move CLP definitions for easier BIOS accessMAINTAINERS hw/s390x/s390-pci-vfio.c include/hw/s390x/ipl/s390-pci-clp.h +1 more+3 -20 replies
8/15pc-bios/s390-ccw: Introduce CLP Architecturepc-bios/s390-ccw/Makefile pc-bios/s390-ccw/clp.c pc-bios/s390-ccw/clp.h+124 -12 replies
9/15s390x: Add definitions for PCI IPL typeinclude/hw/s390x/ipl/qipl.h+10 -00 replies
10/15pc-bios/s390-ccw: Introduce PCI devicepc-bios/s390-ccw/Makefile pc-bios/s390-ccw/pci.c pc-bios/s390-ccw/pci.h+158 -13 replies
11/15pc-bios/s390-ccw: Introduce virtio-pci functionspc-bios/s390-ccw/Makefile pc-bios/s390-ccw/virtio-pci.c pc-bios/s390-ccw/virtio-pci.h +1 more+251 -13 replies
12/15pc-bios/s390-ccw: Add support for virtio-blk-pci IPLpc-bios/s390-ccw/main.c pc-bios/s390-ccw/pci.h pc-bios/s390-ccw/virtio-blkdev.c +4 more+399 -50 replies
13/15s390x: Build IPLB for virtio-pci deviceshw/s390x/ipl.c hw/s390x/ipl.h hw/s390x/s390-pci-bus.c +1 more+57 -70 replies
14/15hw: Add "loadparm" property to virtio block PCI devices booting on s390xhw/pci/pci.c hw/s390x/ipl.c hw/virtio/virtio-blk-pci.c +2 more+52 -20 replies
15/15tests/qtest: Add s390x PCI boot test to cdrom-test.ctests/qtest/cdrom-test.c+7 -04 replies

Reviews trailers per patch

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

PatchThomas HuthEric FarmanFarhan AliMatthew Rosato
1/15R-b R-b R-b
2/15R-b R-b R-b
3/15R-b R-b
4/15R-b
5/15R-b R-b
6/15R-b R-b
7/15R-b R-b R-b
8/15A-b R-b R-b R-b
9/15R-b R-b
10/15A-b R-b R-b
11/15R-b R-b A-b
12/15R-b
13/15R-b R-b
14/15R-b
15/15R-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 4 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/15] s390x: Add support for virtio-blk-pci IPL device

From: Jared Rossi <[email protected]>

This patch series introduces an IPLB subtype to support PCI devices, which may be built if a device has been assigned a boot index and is identified as a PCI device with a corresponding s390 PCI Bus device.

Boot support is only added for virtio-blk-pci at this time and is limited to devices with an assigned bootindex.

A "loadparm" property is added to virtio-blk-pci boot devices on s390x.

A simple test to check basic functionality is added to the cdrom-tests in qtest.

Changes v4 -> v5:
- Fix incorrect switch/case for virtio block device ID
- Use target_s390x() instead of qemu_arch_available(QEMU_ARCH_S390X)
- Properly denote switch fallthrough
- Remove reduntant RC checks in PCI read/write

Jared Rossi (15):
pc-bios/s390-ccw: Fix misattributed function prototypes pc-bios/s390-ccw: Remove redundant vring schid attribute pc-bios/s390-ccw: Always reset virtio device on failed boot attempt
s390x: Remove duplicate definitions of IPL types pc-bios/s390-ccw: Store device type independent of sense data pc-bios/s390-ccw: Split virtio-ccw and generic virtio include/hw/s390x: Move CLP definitions for easier BIOS access pc-bios/s390-ccw: Introduce CLP Architecture
s390x: Add definitions for PCI IPL type pc-bios/s390-ccw: Introduce PCI device
pc-bios/s390-ccw: Introduce virtio-pci functions pc-bios/s390-ccw: Add support for virtio-blk-pci IPL
s390x: Build IPLB for virtio-pci devices
hw: Add "loadparm" property to virtio block PCI devices booting on

    s390x

tests/qtest: Add s390x PCI boot test to cdrom-test.c

 MAINTAINERS                               |   1 +
 hw/pci/pci.c                              |  38 ++
 hw/s390x/ipl.c                            |  63 +++-
 hw/s390x/ipl.h                            |   8 +-
 hw/s390x/s390-pci-bus.c                   |   3 +-
 hw/s390x/s390-pci-vfio.c                  |   2 +-
 hw/virtio/virtio-blk-pci.c                |   1 +
 include/hw/pci/pci.h                      |   1 +
 include/hw/pci/pci_device.h               |   3 +
 include/hw/s390x/ipl/qipl.h               |  20 +
 include/hw/s390x/{ => ipl}/s390-pci-clp.h |   0
 include/hw/s390x/s390-pci-bus.h           |   4 +-
 pc-bios/s390-ccw/Makefile                 |   3 +-
 pc-bios/s390-ccw/bootmap.c                |   2 +-
 pc-bios/s390-ccw/clp.c                    |  99 +++++
 pc-bios/s390-ccw/clp.h                    |  24 ++
 pc-bios/s390-ccw/iplb.h                   |   4 -
 pc-bios/s390-ccw/main.c                   |  88 ++++-
 pc-bios/s390-ccw/netmain.c                |   2 +-
 pc-bios/s390-ccw/pci.c                    | 118 ++++++
 pc-bios/s390-ccw/pci.h                    |  42 +++
 pc-bios/s390-ccw/s390-ccw.h               |   7 -
 pc-bios/s390-ccw/virtio-blkdev.c          |  76 ++--
 pc-bios/s390-ccw/virtio-ccw.c             | 241 ++++++++++++
 pc-bios/s390-ccw/virtio-ccw.h             |  24 ++
 pc-bios/s390-ccw/virtio-net.c             |   5 +-
 pc-bios/s390-ccw/virtio-pci.c             | 432 ++++++++++++++++++++++
 pc-bios/s390-ccw/virtio-pci.h             |  82 ++++
 pc-bios/s390-ccw/virtio-scsi.c            |   8 +-
 pc-bios/s390-ccw/virtio-scsi.h            |   2 +-
 pc-bios/s390-ccw/virtio.c                 | 293 +++++----------
 pc-bios/s390-ccw/virtio.h                 |  19 +-
 tests/qtest/cdrom-test.c                  |   7 +
 33 files changed, 1449 insertions(+), 273 deletions(-)
 rename include/hw/s390x/{ => ipl}/s390-pci-clp.h (100%)
 create mode 100644 pc-bios/s390-ccw/clp.c
 create mode 100644 pc-bios/s390-ccw/clp.h
 create mode 100644 pc-bios/s390-ccw/pci.c
 create mode 100644 pc-bios/s390-ccw/pci.h
 create mode 100644 pc-bios/s390-ccw/virtio-ccw.c
 create mode 100644 pc-bios/s390-ccw/virtio-ccw.h
 create mode 100644 pc-bios/s390-ccw/virtio-pci.c
 create mode 100644 pc-bios/s390-ccw/virtio-pci.h
Signature · 1 line
2.52.0