iommu/ipmmu: Add an IOMMU_IDENTITIY_DOMAIN
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 13 Sep 2023 13:43:50 +0000 (10:43 -0300)
committerJoerg Roedel <jroedel@suse.de>
Mon, 25 Sep 2023 09:41:01 +0000 (11:41 +0200)
commit666c9f1ef7fa9330ea041aba36658aeb48145846
treec8d50b5284d90e97a589dd8fcbfca80c073b7cb1
parent786478a90294ea5b149ed1156a43e82d63ea61ff
iommu/ipmmu: Add an IOMMU_IDENTITIY_DOMAIN

This brings back the ops->detach_dev() code that commit
1b932ceddd19 ("iommu: Remove detach_dev callbacks") deleted and turns it
into an IDENTITY domain.

Also reverts commit 584d334b1393 ("iommu/ipmmu-vmsa: Remove
ipmmu_utlb_disable()")

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/17-v8-81230027b2fa+9d-iommu_all_defdom_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c