]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd/device: Only add reserved_iova in non-pasid path
authorYi Liu <yi.l.liu@intel.com>
Fri, 21 Mar 2025 17:19:26 +0000 (10:19 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Mar 2025 13:18:30 +0000 (10:18 -0300)
commitbc06f7f66de404ae6323963361fe4e2f5f71a1e5
tree2e38a2b6803b87d3b9c1c3836eab2527ddfea3f1
parent03c9b102bea6f4f0b517c841fe1d2f9c616c95b9
iommufd/device: Only add reserved_iova in non-pasid path

As the pasid is passed through the attach/replace/detach helpers, it is
necessary to ensure only the non-pasid path adds reserved_iova.

Link: https://patch.msgid.link/r/20250321171940.7213-5-yi.l.liu@intel.com
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/device.c