qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/10] s390x: Add support for virtio-blk-pci IPL device
@ 2025-12-10 20:54 jrossi
  2025-12-10 20:54 ` [PATCH 01/10] pc-bios/s390-ccw: Fix misattributed function prototypes jrossi
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jrossi @ 2025-12-10 20:54 UTC (permalink / raw)
  To: qemu-devel, qemu-s390x, thuth, mst
  Cc: jjherne, alifm, farman, mjrosato, jrossi, zycai

From: Jared Rossi <jrossi@linux.ibm.com>

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 PCI boot devices on s390x.

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

Changes v1 -> v2:
- Store boot device type/bus as fields of VDev to reduce global variables
- Move existing CLP definitions for easier use in BIOS
- Define a constant for the configuration BAR rather than using a magic 15
- Read BARs from configuration space rather than assuming BAR 4 is always used
- Rework read/write logic to avoid potential buffer overflows
- Create wrappers to do byte swapping as part of common read/writes
- Add "loadparm" property to PCI boot devices on s390x

Jared Rossi (10):
  pc-bios/s390-ccw: Fix misattributed function prototypes
  pc-bios/s390-ccw: Store boot device type and bus separately
  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
  pc-bios/s390-ccw: Introduce PCI device
  pc-bios/s390-ccw: Add support for virtio-blk-pci IPL
  s390x: Build IPLB for virtio-pci devices
  hw: Add "loadparm" property to PCI devices for booting on s390x
  tests/qtest: Add s390x PCI boot test to cdrom-test.c

 hw/s390x/ipl.h                            |   8 +-
 include/hw/pci/pci_device.h               |   3 +
 include/hw/s390x/ipl/qipl.h               |  17 +
 include/hw/s390x/{ => ipl}/s390-pci-clp.h |   0
 include/hw/s390x/s390-pci-bus.h           |   4 +-
 pc-bios/s390-ccw/clp.h                    |  24 ++
 pc-bios/s390-ccw/iplb.h                   |   4 -
 pc-bios/s390-ccw/pci.h                    |  88 ++++++
 pc-bios/s390-ccw/s390-ccw.h               |   7 -
 pc-bios/s390-ccw/virtio-ccw.h             |  24 ++
 pc-bios/s390-ccw/virtio-pci.h             |  79 +++++
 pc-bios/s390-ccw/virtio-scsi.h            |   2 +-
 pc-bios/s390-ccw/virtio.h                 |  15 +-
 hw/pci/pci.c                              |  39 +++
 hw/s390x/ipl.c                            |  63 +++-
 hw/s390x/s390-pci-bus.c                   |   2 +-
 hw/s390x/s390-pci-vfio.c                  |   2 +-
 pc-bios/s390-ccw/bootmap.c                |   2 +-
 pc-bios/s390-ccw/clp.c                    |  96 ++++++
 pc-bios/s390-ccw/main.c                   |  80 ++++-
 pc-bios/s390-ccw/netmain.c                |   2 +-
 pc-bios/s390-ccw/pci.c                    | 331 ++++++++++++++++++++
 pc-bios/s390-ccw/virtio-blkdev.c          |  59 ++--
 pc-bios/s390-ccw/virtio-ccw.c             | 242 +++++++++++++++
 pc-bios/s390-ccw/virtio-net.c             |   5 +-
 pc-bios/s390-ccw/virtio-pci.c             | 360 ++++++++++++++++++++++
 pc-bios/s390-ccw/virtio-scsi.c            |   6 +-
 pc-bios/s390-ccw/virtio.c                 | 239 +++-----------
 tests/qtest/cdrom-test.c                  |   7 +
 pc-bios/s390-ccw/Makefile                 |   3 +-
 30 files changed, 1552 insertions(+), 261 deletions(-)
 rename include/hw/s390x/{ => ipl}/s390-pci-clp.h (100%)
 create mode 100644 pc-bios/s390-ccw/clp.h
 create mode 100644 pc-bios/s390-ccw/pci.h
 create mode 100644 pc-bios/s390-ccw/virtio-ccw.h
 create mode 100644 pc-bios/s390-ccw/virtio-pci.h
 create mode 100644 pc-bios/s390-ccw/clp.c
 create mode 100644 pc-bios/s390-ccw/pci.c
 create mode 100644 pc-bios/s390-ccw/virtio-ccw.c
 create mode 100644 pc-bios/s390-ccw/virtio-pci.c

-- 
2.49.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-12-10 20:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10 20:54 [PATCH V2 0/10] s390x: Add support for virtio-blk-pci IPL device jrossi
2025-12-10 20:54 ` [PATCH 01/10] pc-bios/s390-ccw: Fix misattributed function prototypes jrossi
2025-12-10 20:54 ` [PATCH 02/10] pc-bios/s390-ccw: Store boot device type and bus separately jrossi
2025-12-10 20:54 ` [PATCH 03/10] pc-bios/s390-ccw: Split virtio-ccw and generic virtio jrossi
2025-12-10 20:54 ` [PATCH 04/10] include/hw/s390x: Move CLP definitions for easier BIOS access jrossi
2025-12-10 20:54 ` [PATCH 05/10] pc-bios/s390-ccw: Introduce CLP Architecture jrossi
2025-12-10 20:54 ` [PATCH 06/10] pc-bios/s390-ccw: Introduce PCI device jrossi
2025-12-10 20:54 ` [PATCH 07/10] pc-bios/s390-ccw: Add support for virtio-blk-pci IPL jrossi
2025-12-10 20:54 ` [PATCH 08/10] s390x: Build IPLB for virtio-pci devices jrossi
2025-12-10 20:54 ` [PATCH 09/10] hw: Add "loadparm" property to PCI devices for booting on s390x jrossi
2025-12-10 20:54 ` [PATCH 10/10] tests/qtest: Add s390x PCI boot test to cdrom-test.c jrossi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).