[PATCH v3 00/11] s390/vfio-ccw rework

Eric Farman
2022-06-30T20:37:12Z

Here's an updated pass through the first chunk of vfio-ccw rework.

As with v2, this is all internal to vfio-ccw, with the exception of
the removal of mdev_uuid from include/linux/mdev.h in patch 1.

There is one conflict with the vfio-next branch [2], on patch 6.

The remainder of the work that Jason Gunthorpe originally started [1]
in this space remains for a future day.

v2-v3:
- [KW, MR, JG] Added r-b's (Thank You!)
- Patch 7 (new):
- [MR] Add better debug to fsm_notoper
- Patch 8:
- [MR] Call fsm_notoper for the OPEN event from STANDBY state
- [EF] Drop FSM state=STANDBY in vfio_ccw_sch_probe()
(it is handled in FSM, and was dropped by patch 10)
- Patch 9:
- [MR] Call fsm_close for the CLOSE event from STANDBY state
v2: https://lore.kernel.org/r/20220615203318.3830778-1-farman@linux.ibm.com/
v1: https://lore.kernel.org/r/20220602171948.2790690-1-farman@linux.ibm.com/

Footnotes:
[1] https://lore.kernel.org/r/0-v3-57c1502c62fd+2190-ccw_mdev_jgg@nvidia.com/

Cc: Kirti Wankhede <kwankhede@nvidia.com>

Eric Farman (10):
vfio/ccw: Fix FSM state if mdev probe fails
vfio/ccw: Do not change FSM state in subchannel event
vfio/ccw: Remove private->mdev
vfio/ccw: Pass enum to FSM event jumptable
vfio/ccw: Flatten MDEV device (un)register
vfio/ccw: Update trace data for not operational event
vfio/ccw: Create an OPEN FSM Event
vfio/ccw: Create a CLOSE FSM event
vfio/ccw: Refactor vfio_ccw_mdev_reset
vfio/ccw: Move FSM open/close to MDEV open/close

Michael Kawano (1):
vfio/ccw: Remove UUID from s390 debug log

drivers/s390/cio/vfio_ccw_async.c | 1 -
drivers/s390/cio/vfio_ccw_drv.c | 59 +++++-------------
drivers/s390/cio/vfio_ccw_fsm.c | 97 ++++++++++++++++++++++++-----
drivers/s390/cio/vfio_ccw_ops.c | 77 +++++++----------------
drivers/s390/cio/vfio_ccw_private.h | 9 +--
include/linux/mdev.h | 5 --
6 files changed, 123 insertions(+), 125 deletions(-)

--
2.32.0