iommu/vt-d: Remove mm->pasid in intel_sva_bind_mm()
authorTina Zhang <tina.zhang@intel.com>
Fri, 27 Oct 2023 00:05:21 +0000 (08:05 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 12 Dec 2023 09:11:29 +0000 (10:11 +0100)
commit5c79705d7ce8986036c73e89024d189d4f9df1ff
treec6f92d4d3933bef49225d87739670ff4753ab4be
parent8f23f5dba6b4693448144bde4dd6f537543442c2
iommu/vt-d: Remove mm->pasid in intel_sva_bind_mm()

The pasid is passed in as a parameter through .set_dev_pasid() callback.
Thus, intel_sva_bind_mm() can directly use it instead of retrieving the
pasid value from mm->pasid.

Suggested-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231027000525.1278806-3-tina.zhang@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/svm.c