vfio: Refactor dma APIs for emulated devices
authorYi Liu <yi.l.liu@intel.com>
Fri, 11 Nov 2022 02:57:01 +0000 (18:57 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 5 Dec 2022 12:56:01 +0000 (08:56 -0400)
commit8da7a0e79f9b15330ae68d8532425399f4c27045
treed08374512e4b256f706c14db3157a10744a78996
parent1334e47ee798ac4715330a6ade0afc929cd54aff
vfio: Refactor dma APIs for emulated devices

To use group helpers instead of opening group related code in the
API. This prepares moving group specific code out of vfio_main.c.

Link: https://lore.kernel.org/r/20221201145535.589687-10-yi.l.liu@intel.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Lixiao Yang <lixiao.yang@intel.com>
Tested-by: Yu He <yu.he@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/vfio/container.c
drivers/vfio/vfio.h
drivers/vfio/vfio_main.c