Skip to content

RFC s390/vfio-ccw: Channel Path Handling

Eric Farman kvm linux-s390 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10vfio-ccw: Introduce new helper functions to free/destroy regionsdrivers/s390/cio/vfio_ccw_drv.c+18 -101 reply
2/10vfio-ccw: Register a chp_event callback for vfio-ccwdrivers/s390/cio/vfio_ccw_drv.c+44 -02 replies
3/10vfio-ccw: Use subchannel lpm in the orbdrivers/s390/cio/vfio_ccw_cp.c+1 -34 replies
4/10vfio-ccw: Refactor the unregister of the async regionsdrivers/s390/cio/vfio_ccw_ops.c drivers/s390/cio/vfio_ccw_private.h+13 -81 reply
5/10vfio-ccw: Introduce a new schib regiondrivers/s390/cio/Makefile drivers/s390/cio/vfio_ccw_chp.c drivers/s390/cio/vfio_ccw_drv.c +4 more+117 -32 replies
6/10vfio-ccw: Introduce a new CRW regiondrivers/s390/cio/vfio_ccw_chp.c drivers/s390/cio/vfio_ccw_drv.c drivers/s390/cio/vfio_ccw_ops.c +3 more+86 -01 reply
7/10vfio-ccw: Refactor IRQ handlersdrivers/s390/cio/vfio_ccw_ops.c+17 -61 reply
8/10vfio-ccw: Wire up the CRW irq and CRW regiondrivers/s390/cio/vfio_ccw_drv.c drivers/s390/cio/vfio_ccw_ops.c drivers/s390/cio/vfio_ccw_private.h +1 more+36 -05 replies
9/10vfio-ccw: Add trace for CRW eventdrivers/s390/cio/vfio_ccw_drv.c drivers/s390/cio/vfio_ccw_trace.c drivers/s390/cio/vfio_ccw_trace.h+32 -00 replies
10/10vfio-ccw: Remove inline get_schid() routinedrivers/s390/cio/vfio_ccw_fsm.c+2 -60 replies

Reviews trailers per patch

3 of 10 patches have a Reviewed-by or Acked-by.

PatchCornelia Huck
1/10R-b
2/10
3/10
4/10R-b
5/10
6/10
7/10R-b
8/10
9/10
10/10

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

Read the v1 thread

Cover letter [RFC PATCH v1 00/10] s390/vfio-ccw: Channel Path Handling

Here is a first pass at the channel-path handling code for vfio-ccw. This was initially developed by Farhan Ali this past summer, and picked up by me. For my own benefit/sanity, I made a small changelog in the commit message for each patch, describing the changes I've made to his original code beyond just rebasing to master.

I did split a couple of his patches, to (hopefully) make them a little more understandable. The entire series is based on top of the trace rework patches from a few weeks ago, which are currently pending. But really, the only cause for overlap is the trace patch here. The bulk of it is really self-contained.

With this, and the corresponding QEMU series (to be posted momentarily), applied I am able to configure off/on a CHPID (for example, by issuing "chchp -c 0/1 xx" on the host), and the guest is able to see both the events and reflect the updated path masks in its structures.

For reasons that are hopefully obvious, issuing chchp within the guest only works for the logical vary. Configuring it off/on does not work, which I think is fine.

Eric Farman (4):
vfio-ccw: Refactor the unregister of the async regions
vfio-ccw: Refactor IRQ handlers
vfio-ccw: Add trace for CRW event
vfio-ccw: Remove inline get_schid() routine

Farhan Ali (6):
vfio-ccw: Introduce new helper functions to free/destroy regions
vfio-ccw: Register a chp_event callback for vfio-ccw
vfio-ccw: Use subchannel lpm in the orb
vfio-ccw: Introduce a new schib region
vfio-ccw: Introduce a new CRW region
vfio-ccw: Wire up the CRW irq and CRW region

 drivers/s390/cio/Makefile           |   2 +-
 drivers/s390/cio/vfio_ccw_chp.c     | 128 +++++++++++++++++++++++++
 drivers/s390/cio/vfio_ccw_cp.c      |   4 +-
 drivers/s390/cio/vfio_ccw_drv.c     | 140 ++++++++++++++++++++++++++--
 drivers/s390/cio/vfio_ccw_fsm.c     |   8 +-
 drivers/s390/cio/vfio_ccw_ops.c     |  65 +++++++++----
 drivers/s390/cio/vfio_ccw_private.h |  11 +++
 drivers/s390/cio/vfio_ccw_trace.c   |   1 +
 drivers/s390/cio/vfio_ccw_trace.h   |  30 ++++++
 include/uapi/linux/vfio.h           |   3 +
 include/uapi/linux/vfio_ccw.h       |  10 ++
 11 files changed, 366 insertions(+), 36 deletions(-)
 create mode 100644 drivers/s390/cio/vfio_ccw_chp.c
Signature · 1 line
2.17.1