Messages in this thread | | | Subject | Re: [PATCH v3 5/5] iommu/uapi: Support both kernel and user unbind guest PASID | From | Lu Baolu <> | Date | Thu, 25 Jun 2020 20:59:06 +0800 |
| |
Hi Jacob,
On 2020/6/24 1:03, Jacob Pan wrote: > +int __iommu_sva_unbind_gpasid(struct iommu_domain *domain, struct device *dev, > + struct iommu_gpasid_bind_data *data) > { > if (unlikely(!domain->ops->sva_unbind_gpasid)) > return -ENODEV; > > - return domain->ops->sva_unbind_gpasid(dev, pasid); > + return domain->ops->sva_unbind_gpasid(dev, data->hpasid); > +} > +EXPORT_SYMBOL_GPL(__iommu_sva_unbind_gpasid);
__iommu_sva_unbind_gpasid() looks more like an internal only helper. How about something like iommu_sva_kunbind_gpasid()?
Best regards, baolu
| |