Loading
iommu/sva: Fix SVA handle sharing in multi device case
mainline inclusion from mainline-v6.8-rc7 commit 6384c56c99d98c84afea5b9ec7029a6e153ae431 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I938E2 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6384c56c99d98c84afea5b9ec7029a6e153ae431 -------------------------------- iommu_sva_bind_device will directly goto out in multi-device case when found existing domain, ignoring list_add handle, which causes the handle to fail to be shared. Fixes: 65d4418c5002 ("iommu/sva: Restore SVA handle sharing") Signed-off-by:Zhangfei Gao <zhangfei.gao@linaro.org> Reviewed-by:
Jason Gunthorpe <jgg@nvidia.com> Reviewed-by:
Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by:
Kevin Tian <kevin.tian@intel.com> Link: https://lore.kernel.org/r/20240227064821.128-1-zhangfei.gao@linaro.org Signed-off-by:
Joerg Roedel <jroedel@suse.de> Signed-off-by:
Jason Zeng <jason.zeng@intel.com>