mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
8c9c727b61
Both VFIO and IOMMUFD will need iova bitmap for storing dirties and walking the user bitmaps, so move to the common dependency into IOMMUFD. In doing so, create the symbol IOMMUFD_DRIVER which designates the builtin code that will be used by drivers when selected. Today this means MLX5_VFIO_PCI and PDS_VFIO_PCI. IOMMU drivers will do the same (in future patches) when supporting dirty tracking and select IOMMUFD_DRIVER accordingly. Given that the symbol maybe be disabled, add header definitions in iova_bitmap.h for when IOMMUFD_DRIVER=n Link: https://lore.kernel.org/r/20231024135109.73787-3-joao.m.martins@oracle.com Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Brett Creeley <brett.creeley@amd.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
18 lines
591 B
Makefile
18 lines
591 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_VFIO) += vfio.o
|
|
|
|
vfio-y += vfio_main.o
|
|
vfio-$(CONFIG_VFIO_DEVICE_CDEV) += device_cdev.o
|
|
vfio-$(CONFIG_VFIO_GROUP) += group.o
|
|
vfio-$(CONFIG_IOMMUFD) += iommufd.o
|
|
vfio-$(CONFIG_VFIO_CONTAINER) += container.o
|
|
vfio-$(CONFIG_VFIO_VIRQFD) += virqfd.o
|
|
|
|
obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o
|
|
obj-$(CONFIG_VFIO_IOMMU_SPAPR_TCE) += vfio_iommu_spapr_tce.o
|
|
obj-$(CONFIG_VFIO_PCI_CORE) += pci/
|
|
obj-$(CONFIG_VFIO_PLATFORM_BASE) += platform/
|
|
obj-$(CONFIG_VFIO_MDEV) += mdev/
|
|
obj-$(CONFIG_VFIO_FSL_MC) += fsl-mc/
|
|
obj-$(CONFIG_VFIO_CDX) += cdx/
|