Skip to content

Move vfio_ccw to the new mdev API

Jason Gunthorpe kvm linux-s390 3 versions – Applied

Status from this message: Applied to vfio next branch for v5.16. Thanks,

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyApplied
  2. v310 patches 6 repliesSuperseded
  3. v29 patches 28 repliesSuperseded

Changes in v4 from the cover letter

- Rebase to vfio-next (9cef73918), no change
- Add acks
v3: https://lore.kernel.org/r/[email protected]
- 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/[email protected]
- Clean up the lifecycle in ccw with 7 new patches
- Rebase
v1: https://lore.kernel.org/all/[email protected]

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4vfio/ccw: Remove unneeded GFP_DMAdrivers/s390/cio/vfio_ccw_drv.c+1 -10 replies
2/4vfio/ccw: Use functions for alloc/free of the vfio_ccw_privatedrivers/s390/cio/vfio_ccw_drv.c+78 -590 replies
3/4vfio/ccw: Pass vfio_ccw_private not mdev_device to various functionsdrivers/s390/cio/vfio_ccw_ops.c+15 -220 replies
4/4vfio/ccw: Convert to use vfio_register_emulated_iommu_dev()drivers/s390/cio/vfio_ccw_drv.c drivers/s390/cio/vfio_ccw_ops.c drivers/s390/cio/vfio_ccw_private.h+85 -480 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMatthew RosatoEric FarmanChristoph HellwigCornelia Huck
1/4R-b R-b
2/4R-b
3/4R-b R-b R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] Move vfio_ccw to the new mdev API

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/[email protected]
- 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/[email protected]
- Clean up the lifecycle in ccw with 7 new patches
- Rebase
v1: https://lore.kernel.org/all/[email protected]

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

Signature · 1 line
2.33.0