iommu/vt-d: Remove DEFER_DEVICE_DOMAIN_INFO
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 1 Mar 2022 02:01:52 +0000 (10:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Mar 2022 15:46:30 +0000 (16:46 +0100)
commit586081d3f6b13ec9dfdfdf3d7842a688b376fa5e
tree38d549ec56689c8f4b795daf69ed5d66ca6c46bb
parentee2653bbe89df777e222ec1aa015c2ed7ea06b6b
iommu/vt-d: Remove DEFER_DEVICE_DOMAIN_INFO

Allocate and set the per-device iommu private data during iommu device
probe. This makes the per-device iommu private data always available
during iommu_probe_device() and iommu_release_device(). With this changed,
the dummy DEFER_DEVICE_DOMAIN_INFO pointer could be removed. The wrappers
for getting the private data and domain are also cleaned.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20220214025704.3184654-1-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20220301020159.633356-6-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/debugfs.c
drivers/iommu/intel/iommu.c
drivers/iommu/intel/pasid.c
drivers/iommu/intel/svm.c
include/linux/intel-iommu.h