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

From: Jason Gunthorpe <[email-masked]>
Date: Fri, 3 Nov 2023 14:37:50 -0300

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