Here is a first pass at the channel-path handling code for vfio-ccw, to take advantage of the corresponding kernel patches posted here:
https://lore.kernel.org/kvm/20191115025620.19593-1-far...@linux.ibm.com/ As with the KVM patches, these were originally written by Farhan Ali this past summer, and my git notes log the changes I've made since picking up this work. There are two commits at the front of this series that seem to be pre-reqs to the actual changes for this, which is why the linux-headers update seems lost in the middle of this. I've tried to be mindful of testing permutations of new/old kernel with either new/old QEMU, and it seems to be in good shape. Eric Farman (2): vfio-ccw: Refactor cleanup of regions vfio-ccw: Refactor ccw irq handler Farhan Ali (6): vfio-ccw: Return IOINST_CC_NOT_OPERATIONAL for EIO vfio-ccw: Don't inject an I/O interrupt if the subchannel is not enabled linux-headers: update vfio-ccw: Add support for the schib region vfio-ccw: Add support for the crw region vfio-ccw: Add support for the CRW irq hw/s390x/css.c | 8 +- hw/s390x/s390-ccw.c | 20 ++++ hw/vfio/ccw.c | 195 +++++++++++++++++++++++++++++---- include/hw/s390x/css.h | 3 +- include/hw/s390x/s390-ccw.h | 1 + linux-headers/linux/vfio.h | 3 + linux-headers/linux/vfio_ccw.h | 10 ++ target/s390x/ioinst.c | 3 +- 8 files changed, 217 insertions(+), 26 deletions(-) -- 2.17.1