mbox series

[v4,0/4] Move vfio_ccw to the new mdev API

Message ID 0-v4-cea4f5bd2c00+b52-ccw_mdev_jgg@nvidia.com (mailing list archive)
Headers show
Series Move vfio_ccw to the new mdev API | expand

Message

Jason Gunthorpe Oct. 26, 2021, 5:57 p.m. UTC
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@nvidia.com
 - 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@nvidia.com
 - Clean up the lifecycle in ccw with 7 new patches
 - Rebase
v1: https://lore.kernel.org/all/7-v2-7667f42c9bad+935-vfio3_jgg@nvidia.com

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

Comments

Alex Williamson Oct. 28, 2021, 6:40 p.m. UTC | #1
On Tue, 26 Oct 2021 14:57:29 -0300
Jason Gunthorpe <jgg@nvidia.com> wrote:

> 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
 
Applied to vfio next branch for v5.16.  Thanks,

Alex