All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/10] Move group specific code into group.c
@ 2022-12-01 14:55 Yi Liu
  2022-12-01 14:55 ` [PATCH 01/10] vfio: Simplify vfio_create_group() Yi Liu
                   ` (10 more replies)
  0 siblings, 11 replies; 28+ messages in thread
From: Yi Liu @ 2022-12-01 14:55 UTC (permalink / raw)
  To: alex.williamson, jgg
  Cc: kevin.tian, cohuck, eric.auger, nicolinc, kvm, mjrosato,
	chao.p.peng, yi.l.liu, yi.y.sun

With the introduction of iommufd[1], VFIO is towarding to provide device
centric uAPI after adapting to iommufd. With this trend, existing VFIO
group infrastructure is optional once VFIO converted to device centric.

This series moves the group specific code out of vfio_main.c, prepares
for compiling group infrastructure out after adding vfio device cdev[2]

Complete code in below branch:

https://github.com/yiliu1765/iommufd/commits/vfio_group_split_v1

This is based on Jason's "Connect VFIO to IOMMUFD"[3] and my "Make mdev driver
dma_unmap callback tolerant to unmaps come before device open"[4]

[1] https://lore.kernel.org/all/0-v5-4001c2997bd0+30c-iommufd_jgg@nvidia.com/
[2] https://github.com/yiliu1765/iommufd/tree/wip/vfio_device_cdev
[3] https://lore.kernel.org/kvm/0-v4-42cd2eb0e3eb+335a-vfio_iommufd_jgg@nvidia.com/
[4] https://lore.kernel.org/kvm/20221129105831.466954-1-yi.l.liu@intel.com/

v1:
 - Keep the iommufd code in vfio_main.c just move group code out (Jason)
 - Add r-b from Kevin
 - Reorder the patch sequence
 - Drop "vfio: Make vfio_device_open() group agnostic"

rfcv2: https://lore.kernel.org/kvm/20221124122702.26507-1-yi.l.liu@intel.com/
 - Remove device->group reference in vfio_main.c suggested by Jason.
 - Cherry-pick the patches in Alex's vfio/next branch, and rebased this
   series on the top.

rfcv1: https://lore.kernel.org/kvm/20221123150113.670399-1-yi.l.liu@intel.com/T/#t

Regards,
	Yi Liu

Jason Gunthorpe (2):
  vfio: Simplify vfio_create_group()
  vfio: Move the sanity check of the group to vfio_create_group()

Yi Liu (8):
  vfio: Create wrappers for group register/unregister
  vfio: Set device->group in helper function
  vfio: Swap order of vfio_device_container_register() and open_device()
  vfio: Move device open/close code to be helpfers
  vfio: Refactor vfio_device open and close
  vfio: Wrap vfio group module init/clean code into helpers
  vfio: Refactor dma APIs for emulated devices
  vfio: Move vfio group specific code into group.c

 drivers/vfio/Makefile    |   1 +
 drivers/vfio/container.c |  20 +-
 drivers/vfio/group.c     | 877 +++++++++++++++++++++++++++++++++++++
 drivers/vfio/vfio.h      |  54 ++-
 drivers/vfio/vfio_main.c | 909 +++------------------------------------
 5 files changed, 986 insertions(+), 875 deletions(-)
 create mode 100644 drivers/vfio/group.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2022-12-07  4:13 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01 14:55 [PATCH 00/10] Move group specific code into group.c Yi Liu
2022-12-01 14:55 ` [PATCH 01/10] vfio: Simplify vfio_create_group() Yi Liu
2022-12-01 14:55 ` [PATCH 02/10] vfio: Move the sanity check of the group to vfio_create_group() Yi Liu
2022-12-01 14:55 ` [PATCH 03/10] vfio: Create wrappers for group register/unregister Yi Liu
2022-12-01 14:55 ` [PATCH 04/10] vfio: Set device->group in helper function Yi Liu
2022-12-02  5:34   ` Tian, Kevin
2022-12-01 14:55 ` [PATCH 05/10] vfio: Swap order of vfio_device_container_register() and open_device() Yi Liu
2022-12-01 14:55 ` [PATCH 06/10] vfio: Move device open/close code to be helpfers Yi Liu
2022-12-02  5:44   ` Tian, Kevin
2022-12-02  6:37     ` Yi Liu
2022-12-01 14:55 ` [PATCH 07/10] vfio: Refactor vfio_device open and close Yi Liu
2022-12-02  6:15   ` Tian, Kevin
2022-12-02  6:37     ` Yi Liu
2022-12-02 15:07       ` Jason Gunthorpe
2022-12-02 21:58   ` Alex Williamson
2022-12-03 13:46     ` Yi Liu
2022-12-01 14:55 ` [PATCH 08/10] vfio: Wrap vfio group module init/clean code into helpers Yi Liu
2022-12-01 14:55 ` [PATCH 09/10] vfio: Refactor dma APIs for emulated devices Yi Liu
2022-12-01 14:55 ` [PATCH 10/10] vfio: Move vfio group specific code into group.c Yi Liu
2022-12-02  6:26   ` Tian, Kevin
2022-12-01 20:39 ` [PATCH 00/10] Move " Jason Gunthorpe
2022-12-02 13:57   ` Yi Liu
2022-12-02 14:44     ` Jason Gunthorpe
2022-12-02 23:12       ` Alex Williamson
2022-12-03 13:53         ` Yi Liu
2022-12-05 13:43           ` Jason Gunthorpe
2022-12-06  7:31           ` Yang, Lixiao
2022-12-07  4:12             ` He, Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.