Re: [PATCH v5 1/9] vfio: Rename VFIO_NOIOMMU to VFIO_GROUP_NOIOMMU
From: Jason Gunthorpe
Date: Tue May 19 2026 - 19:35:43 EST
On Mon, May 11, 2026 at 11:41:06AM -0700, Jacob Pan wrote:
> In preparation for adding cdev-based noiommu support under iommufd,
> rename CONFIG_VFIO_NOIOMMU to CONFIG_VFIO_GROUP_NOIOMMU to clearly
> scope it to the legacy group/container path. Also rename the helper
> vfio_device_is_noiommu() to vfio_device_is_group_noiommu() to match.
>
> Add an explicit dependency on VFIO_CONTAINER or IOMMUFD_VFIO_CONTAINER
> since the group-based noiommu path is only meaningful when container
> support is enabled.
>
> This is a pure rename with no functional change, laying the groundwork
> for a separate VFIO_CDEV_NOIOMMU config that enables noiommu mode
> through the iommufd cdev interface.
>
> Link: https://lore.kernel.org/linux-iommu/20260416144915.4fe38481@xxxxxxxxxxx/
> Suggested-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
> Signed-off-by: Jacob Pan <jacob.pan@xxxxxxxxxxxxxxxxxxx>
> ---
> drivers/iommu/iommufd/vfio_compat.c | 4 ++--
> drivers/vfio/Kconfig | 6 +++---
> drivers/vfio/container.c | 6 +++---
> drivers/vfio/group.c | 4 ++--
> drivers/vfio/iommufd.c | 6 +++---
> drivers/vfio/vfio.h | 12 ++++++------
> drivers/vfio/vfio_main.c | 4 ++--
> 7 files changed, 21 insertions(+), 21 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
Jason