Thread (18 messages) 18 messages, 6 authors, 2025-11-26

Re: [PATCH v7 2/5] iommu: Tidy domain for iommu_setup_dma_ops()

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-11-25 19:19:51
Also in: kvm, linux-acpi, linux-iommu, linux-patches, linux-pci, lkml

On Fri, Nov 21, 2025 at 05:57:29PM -0800, Nicolin Chen wrote:
This function can only be called on the default_domain. Trivally pass it
in. In all three existing cases, the default domain was just attached to
the device.

This avoids iommu_setup_dma_ops() calling iommu_get_domain_for_dev() that
will be used by external callers.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Nicolin Chen <redacted>
---
 drivers/iommu/dma-iommu.h | 5 +++--
 drivers/iommu/dma-iommu.c | 4 +---
 drivers/iommu/iommu.c     | 6 +++---
 3 files changed, 7 insertions(+), 8 deletions(-)
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