On Thu, Mar 23, 2023 at 05:22:36PM +0800, Nanyong Sun wrote:Yeah, thanks for your suggestion,but as Michael and Jason Wang said, before iommufd is ready, we may need to make vDPA work well on software managed MSI platforms.
You have to call iommu_device_claim_dma_owner()A patch to export that function is alread posted:I want to confirm if we need to introduce iommu group logic to vdpa, as "all
https://lore.kernel.org/linux-iommu/BN9PR11MB52760E9705F2985EACCD5C4A8CBA9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/T/#u
But I do not want VDPA to mis-use it unless it also implements all the
ownership stuff properly.
the ownership stuff" ?
But again, this is all pointless, iommufd takes are of all of this and
VDPA should switch to it instead of more hacking.
Jason
.