[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251201173012.18371-6-jacob.pan@linux.microsoft.com>
Date: Mon, 1 Dec 2025 09:30:09 -0800
From: Jacob Pan <jacob.pan@...ux.microsoft.com>
To: linux-kernel@...r.kernel.org,
"iommu@...ts.linux.dev" <iommu@...ts.linux.dev>,
Jason Gunthorpe <jgg@...dia.com>,
Alex Williamson <alex.williamson@...hat.com>,
Joerg Roedel <joro@...tes.org>,
Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>,
Nicolin Chen <nicolinc@...dia.com>,
"Tian, Kevin" <kevin.tian@...el.com>,
"Liu, Yi L" <yi.l.liu@...el.com>
Cc: skhawaja@...gle.com,
pasha.tatashin@...een.com,
Jacob Pan <jacob.pan@...ux.microsoft.com>,
Zhang Yu <zhangyu1@...ux.microsoft.com>,
Jean Philippe-Brucker <jean-philippe@...aro.org>,
David Matlack <dmatlack@...gle.com>
Subject: [RFC 5/8] vfio: IOMMUFD relax requirement for noiommu mode
noiommu device only has auto domain, does not need to attach to other ioas.
Signed-off-by: Jacob Pan <jacob.pan@...ux.microsoft.com>
---
drivers/vfio/vfio_main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/vfio/vfio_main.c b/drivers/vfio/vfio_main.c
index 38c8e9350a60..805d30b0b82f 100644
--- a/drivers/vfio/vfio_main.c
+++ b/drivers/vfio/vfio_main.c
@@ -317,9 +317,7 @@ static int __vfio_register_dev(struct vfio_device *device,
if (WARN_ON(IS_ENABLED(CONFIG_IOMMUFD) &&
(!device->ops->bind_iommufd ||
- !device->ops->unbind_iommufd ||
- !device->ops->attach_ioas ||
- !device->ops->detach_ioas)))
+ !device->ops->unbind_iommufd)))
return -EINVAL;
/*
--
2.34.1
Powered by blists - more mailing lists