Skip to content

S390: Add virtio-ccw firmware

Alexander Graf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12S390: Make IPL reset address dynamichw/s390x/ipl.c+11 -110 replies
2/12S390: IPL: Support ELF firmwarehw/s390x/ipl.c+10 -60 replies
3/12S390: IPL: Use different firmware for different machineshw/s390x/ipl.c hw/s390x/s390-virtio-ccw.c hw/s390x/s390-virtio.c +1 more+11 -60 replies
4/12S390: ccw firmware: Add start assemblypc-bios/s390-ccw/start.S+16 -00 replies
5/12S390: ccw firmware: Add main programpc-bios/s390-ccw/main.c+56 -04 replies
6/12S390: ccw firmware: Add sclp outputpc-bios/s390-ccw/sclp-ascii.c pc-bios/s390-ccw/sclp.h+188 -00 replies
7/12S390: ccw firmware: Add virtio device driverspc-bios/s390-ccw/cio.h pc-bios/s390-ccw/virtio.c pc-bios/s390-ccw/virtio.h+754 -01 reply
8/12S390: ccw firmware: Add glue headerpc-bios/s390-ccw/s390-ccw.h+131 -00 replies
9/12S390: ccw firmware: Add bootmap interpreterpc-bios/s390-ccw/bootmap.c+235 -00 replies
10/12S390: ccw firmware: Add Makefile.gitignore pc-bios/s390-ccw/Makefile+28 -01 reply
11/12S390: ccw firmware: Add compiled blobMakefile pc-bios/s390-ccw.img+1 -00 replies
12/12S390: CCW: Use new, working firmware by defaulthw/s390x/s390-virtio-ccw.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/12] S390: Add virtio-ccw firmware

We used to be able to boot from the virtio-s390 machine using a modified version of zipl. However, for our new virtio-ccw machine, there was not such support available.

This patch set adds a tiny but of firmware to the game, so that we get the same functionality back that we used to have on virtio-s390.

It should live in the QEMU tree, so that we can easily extend it to support more fancy features, like asking the user to choose which entry to boot, or boot menus.

Alex

Alexander Graf (12):
S390: Make IPL reset address dynamic
S390: IPL: Support ELF firmware
S390: IPL: Use different firmware for different machines
S390: ccw firmware: Add start assembly
S390: ccw firmware: Add main program
S390: ccw firmware: Add sclp output
S390: ccw firmware: Add virtio device drivers
S390: ccw firmware: Add glue header
S390: ccw firmware: Add bootmap interpreter
S390: ccw firmware: Add Makefile
S390: ccw firmware: Add compiled blob
S390: CCW: Use new, working firmware by default

 .gitignore                    |    2 +
 Makefile                      |    1 +
 hw/s390x/ipl.c                |   41 +++---
 hw/s390x/s390-virtio-ccw.c    |    2 +-
 hw/s390x/s390-virtio.c        |    7 +-
 hw/s390x/s390-virtio.h        |    3 +-
 pc-bios/s390-ccw.img          |  Bin 0 -> 9432 bytes
 pc-bios/s390-ccw/Makefile     |   26 ++++
 pc-bios/s390-ccw/bootmap.c    |  235 ++++++++++++++++++++++++++++++
 pc-bios/s390-ccw/cio.h        |  322 +++++++++++++++++++++++++++++++++++++++++
 pc-bios/s390-ccw/main.c       |   56 +++++++
 pc-bios/s390-ccw/s390-ccw.h   |  131 +++++++++++++++++
 pc-bios/s390-ccw/sclp-ascii.c |   81 ++++++++++
 pc-bios/s390-ccw/sclp.h       |  107 ++++++++++++++
 pc-bios/s390-ccw/start.S      |   16 ++
 pc-bios/s390-ccw/virtio.c     |  274 +++++++++++++++++++++++++++++++++++
 pc-bios/s390-ccw/virtio.h     |  158 ++++++++++++++++++++
 17 files changed, 1440 insertions(+), 22 deletions(-)
 create mode 100644 pc-bios/s390-ccw.img
 create mode 100644 pc-bios/s390-ccw/Makefile
 create mode 100644 pc-bios/s390-ccw/bootmap.c
 create mode 100644 pc-bios/s390-ccw/cio.h
 create mode 100644 pc-bios/s390-ccw/main.c
 create mode 100644 pc-bios/s390-ccw/s390-ccw.h
 create mode 100644 pc-bios/s390-ccw/sclp-ascii.c
 create mode 100644 pc-bios/s390-ccw/sclp.h
 create mode 100644 pc-bios/s390-ccw/start.S
 create mode 100644 pc-bios/s390-ccw/virtio.c
 create mode 100644 pc-bios/s390-ccw/virtio.h