-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iommu: Pass domain to remove_dev_pasid() op
Existing remove_dev_pasid() callbacks of underlying iommu drivers gets the attached domain from the group->pasid_array. However, the domains stored in group->pasid_array are not always correct. For example, in the error handling of the set_dev_pasid() path, remove_dev_pasid() callbacks would get a wrong domain. This is because of The set_dev_pasid path updates group->pasid_array before calling into set_dev_pasid() callbacks. So remove_dev_pasid() callbacks in the set_dev_pasdid path may get an incorrect domain for a given device. To avoid this, pass domain to remove_dev_pasid() is more reliable. Suggested-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com>
- Loading branch information
Showing
4 changed files
with
12 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters