Thread (34 messages) 34 messages, 5 authors, 2025-02-27

Re: [PATCH v2 7/7] iommu: Turn iova_cookie to dma-iommu private pointer

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-02-20 17:51:01
Also in: linux-iommu, linux-kselftest, linux-patches, lkml

On Wed, Feb 19, 2025 at 05:31:42PM -0800, Nicolin Chen wrote:
Now that iommufd does not rely on dma-iommu.c for any purpose. We can
combine the dma-iommu.c iova_cookie and the iommufd_hwpt under the same
union. This union is effectively 'owner data' and can be used by the
entity that allocated the domain. Note that legacy vfio type1 flows
continue to use dma-iommu.c for sw_msi and still need iova_cookie.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Nicolin Chen <redacted>
---
 include/linux/iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help