Re: [RFC v1 8/8] iommu: expose the function iommu_device_use_default_domain

From: Jason Gunthorpe
Date: Fri Nov 03 2023 - 13:38:03 EST


On Sat, Nov 04, 2023 at 01:16:41AM +0800, Cindy Lu wrote:
> Expose the function iommu_device_use_default_domain() and
> iommu_device_unuse_default_domain(),
> While vdpa bind the iommufd device and detach the iommu device,
> vdpa need to call the function
> iommu_device_unuse_default_domain() to release the owner

Definately not. You need to set the driver_managed_dma flag.

Jason