On Fri, Nov 11, 2022 at 05:59:02AM +0000, Tian, Kevin wrote: > > From: Jason Gunthorpe <jgg@xxxxxxxxxx> > > Sent: Wednesday, November 9, 2022 1:10 AM > > > > +/** > > + * iommufd_device_unbind - Undo iommufd_device_bind() > > + * @idev: Device returned by iommufd_device_bind() > > + * > > + * Release the device from iommufd control. The DMA ownership will > > return back > > + * to unowned with blocked DMA. This invalidates the iommufd_device > > unowned but not blocked DMA. iommu_device_release_dma_owner() > will decide what will be the state then, e.g. attached back to the default > domain in most cases. Woops * Release the device from iommufd control. The DMA ownership will return back * to unowned with DMA controlled by the DMA API. This invalidates the * iommufd_device pointer, other APIs that consume it must not be called * concurrently. Thanks, Jason