Re: [Intel-gfx] [PATCH v12 23/24] vfio: Compile vfio_group infrastructure optionally

Jason Gunthorpe
2023-06-23T16:35:10Z

On Fri, Jun 02, 2023 at 05:16:52AM -0700, Yi Liu wrote:
> vfio_group is not needed for vfio device cdev, so with vfio device cdev
> introduced, the vfio_group infrastructures can be compiled out if only
> cdev is needed.
>
> Tested-by: Yanting Jiang <yanting.jiang@intel.com>
> Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
> Tested-by: Terrence Xu <terrence.xu@intel.com>
> Signed-off-by: Yi Liu <yi.l.liu@intel.com>
> ---
> drivers/iommu/iommufd/Kconfig | 4 +-
> drivers/vfio/Kconfig | 15 +++++++
> drivers/vfio/Makefile | 2 +-
> drivers/vfio/vfio.h | 84 ++++++++++++++++++++++++++++++++---
> include/linux/vfio.h | 25 +++++++++--
> 5 files changed, 118 insertions(+), 12 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason