Skip to content

vfio-ccw: support hsch/csch (kernel part)

Cornelia Huck kvm linux-s390 qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 50 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vfio-ccw: add capabilities chaindrivers/s390/cio/vfio_ccw_ops.c drivers/s390/cio/vfio_ccw_private.h include/uapi/linux/vfio.h+195 -2610 replies
2/3s390/cio: export hsch to modulesdrivers/s390/cio/ioasm.c+1 -01 reply
3/3vfio-ccw: add handling for asnyc channel instructionsdrivers/s390/cio/Makefile drivers/s390/cio/vfio_ccw_async.c drivers/s390/cio/vfio_ccw_drv.c +5 more+313 -1917 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchPierre Morel
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] vfio-ccw: support hsch/csch (kernel part)

[This is the Linux kernel part, git tree is available at
https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw.git vfio-ccw-caps

The companion QEMU patches are available at
https://github.com/cohuck/qemu vfio-ccw-caps]

Currently, vfio-ccw only relays START SUBCHANNEL requests to the real device. This tends to work well for the most common 'good path' scenarios; however, as we emulate {HALT,CLEAR} SUBCHANNEL in QEMU, things like clearing pending requests at the device is currently not supported. This may be a problem for e.g. error recovery.

This patch series introduces capabilities (similar to what vfio-pci uses) and exposes a new async region for handling hsch/csch.

Very lightly tested (I can interact with a dasd as before; I have not found a reliable way to trigger hsch/csch in the Linux dasd guest driver.)

Cornelia Huck (3):
vfio-ccw: add capabilities chain
s390/cio: export hsch to modules
vfio-ccw: add handling for asnyc channel instructions

 drivers/s390/cio/Makefile           |   3 +-
 drivers/s390/cio/ioasm.c            |   1 +
 drivers/s390/cio/vfio_ccw_async.c   |  88 +++++++++++++
 drivers/s390/cio/vfio_ccw_drv.c     |  48 +++++--
 drivers/s390/cio/vfio_ccw_fsm.c     | 158 +++++++++++++++++++++-
 drivers/s390/cio/vfio_ccw_ops.c     | 195 ++++++++++++++++++++++++----
 drivers/s390/cio/vfio_ccw_private.h |  44 +++++++
 include/uapi/linux/vfio.h           |   5 +
 include/uapi/linux/vfio_ccw.h       |  12 ++
 9 files changed, 509 insertions(+), 45 deletions(-)
 create mode 100644 drivers/s390/cio/vfio_ccw_async.c
Signature · 1 line
2.17.2