On Thu, Apr 10, 2025 at 11:37:46PM -0700, Nicolin Chen wrote: > To allow IOMMU drivers to allocate own vDEVICE structures, move the struct > iommufd_vdevice to the public header and provide a pair of viommu ops. > > The iommufd_vdevice_alloc_ioctl will prioritize the callback function from > the viommu ops, i.e. a driver-allocated vDEVICE. > > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> > --- > drivers/iommu/iommufd/iommufd_private.h | 8 ------- > include/linux/iommufd.h | 32 +++++++++++++++++++++++++ > drivers/iommu/iommufd/viommu.c | 9 ++++++- > 3 files changed, 40 insertions(+), 9 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason