[PATCH v1 07/16] iommufd/viommu: Add driver-allocated vDEVICE support
Jason Gunthorpe
jgg at nvidia.com
Wed Apr 23 06:36:42 PDT 2025
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 at nvidia.com>
> ---
> 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 at nvidia.com>
Jason
More information about the linux-arm-kernel
mailing list