On Wed, Apr 23, 2025 at 10:18:39AM +0800, Lu Baolu wrote:
@@ -3435,7 +3448,8 @@ int iommu_attach_device_pasid(struct iommu_domain *domain, !ops->blocked_domain->ops->set_dev_pasid) return -EOPNOTSUPP;
- if (ops != domain->owner || pasid == IOMMU_NO_PASID)
- if (!domain_iommu_ops_compatible(ops, domain) ||
return -EINVAL;pasid == IOMMU_NO_PASID)
Convert all the places checking domain->owner to the new function..
static int __iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group)
int iommu_replace_device_pasid(struct iommu_domain *domain, struct device *dev, ioasid_t pasid, struct iommu_attach_handle *handle)
Jason