]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu: Consolidate the ops->remove_dev_pasid usage into a helper
authorYi Liu <yi.l.liu@intel.com>
Wed, 4 Dec 2024 12:29:23 +0000 (04:29 -0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 18 Dec 2024 08:39:35 +0000 (09:39 +0100)
commit1fbf73425f5169e2d183b2ca67bfe2f1019d11c0
tree9a1adab7c00d6547ecfdfdfc4990d99fbeab56e9
parentfb3de9f9b085d003a8a869ca6a4789d1bfbb3f22
iommu: Consolidate the ops->remove_dev_pasid usage into a helper

Add a wrapper for the ops->remove_dev_pasid, this consolidates the iommu_ops
fetching and callback invoking. It is also a preparation for starting the
transition from using remove_dev_pasid op to detach pasid to the way using
blocked_domain to detach pasid.

Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20241204122928.11987-3-yi.l.liu@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c