[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250423142102.GL1648741@nvidia.com>
Date: Wed, 23 Apr 2025 11:21:02 -0300
From: Jason Gunthorpe <jgg@...dia.com>
To: Lu Baolu <baolu.lu@...ux.intel.com>
Cc: Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>,
Kevin Tian <kevin.tian@...el.com>, shangsong2@...ovo.com,
Dave Jiang <dave.jiang@...el.com>, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH v2 1/1] iommu: Allow attaching static domains in
iommu_attach_device_pasid()
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) ||
> + pasid == IOMMU_NO_PASID)
> return -EINVAL;
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
Powered by blists - more mailing lists