]> www.infradead.org Git - nvme.git/commit
iommu: Set iommu_attach_handle->domain in core
authorYi Liu <yi.l.liu@intel.com>
Sun, 8 Sep 2024 11:42:56 +0000 (04:42 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 11 Sep 2024 23:14:07 +0000 (20:14 -0300)
commit79805c1bbbf9846fe91c16933d64614cbbff1dee
treeb7fac4d8c54e5eb2b2222bcc597252db8b5f5841
parentd9dfb5e6225a0a99e08dc2a538b0c30a5a9a460c
iommu: Set iommu_attach_handle->domain in core

The IOMMU core sets the iommu_attach_handle->domain for the
iommu_attach_group_handle() path, while the iommu_replace_group_handle()
sets it on the caller side. Make the two paths aligned on it.

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