vfio: Compile vfio_group infrastructure optionally
authorYi Liu <yi.l.liu@intel.com>
Tue, 18 Jul 2023 13:55:50 +0000 (06:55 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 25 Jul 2023 16:20:50 +0000 (10:20 -0600)
commitc1cce6d079b875396c9a7c6838fc5b024758e540
tree89afdead8174a8d4e0c297f00ee8d4fef862b640
parent5398be2564ebf761373c0d003246490e529da21a
vfio: Compile vfio_group infrastructure optionally

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.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Matthew Rosato <mjrosato@linux.ibm.com>
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>
Tested-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20230718135551.6592-26-yi.l.liu@intel.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/iommufd/Kconfig
drivers/vfio/Kconfig
drivers/vfio/Makefile
drivers/vfio/vfio.h
include/linux/vfio.h