This is the first 4 patches of the v3 series which only change CCW to use the new VFIO API for mdevs and leaves the lifetime model as-is. As agreed, we will go ahead with this set and IBM can take the remaining patches of cleanup when they want. (I won't resend them) Alex: as Eric has now ack'd them please take them to the VFIO tree for this upcoming merge window This is on github: https://github.com/jgunthorpe/linux/commits/vfio_ccw Thanks, Jason v4: - Rebase to vfio-next (9cef73918), no change - Add acks v3: https://lore.kernel.org/r/0-v3-57c1502c62fd+2190-ccw_mdev_jgg@xxxxxxxxxx - Rebase to Christoph's group work & rc3; use vfio_register_emulated_iommu_dev() - Remove GFP_DMA - Order mdev_unregister_driver() symmetrically with init - Rework what is considered a BROKEN event in fsm_close() - NOP both CCW_EVENT_OPEN/CLOSE - Documentation updates - Remane goto label to err_init vfio_ccw_mdev_probe() - Fix NULL pointer deref in mdev_device_create() v2: https://lore.kernel.org/r/0-v2-7d3a384024cf+2060-ccw_mdev_jgg@xxxxxxxxxx - Clean up the lifecycle in ccw with 7 new patches - Rebase v1: https://lore.kernel.org/all/7-v2-7667f42c9bad+935-vfio3_jgg@xxxxxxxxxx Jason Gunthorpe (4): vfio/ccw: Remove unneeded GFP_DMA vfio/ccw: Use functions for alloc/free of the vfio_ccw_private vfio/ccw: Pass vfio_ccw_private not mdev_device to various functions vfio/ccw: Convert to use vfio_register_emulated_iommu_dev() drivers/s390/cio/vfio_ccw_drv.c | 158 ++++++++++++++++------------ drivers/s390/cio/vfio_ccw_ops.c | 142 ++++++++++++++----------- drivers/s390/cio/vfio_ccw_private.h | 5 + 3 files changed, 177 insertions(+), 128 deletions(-) base-commit: 9cef73918e15d2284e71022291a8a07901e80bad -- 2.33.0