iommu/vt-d: Implement is_attach_deferred iommu ops entry
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 25 May 2019 05:41:32 +0000 (13:41 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 28 May 2019 08:19:11 +0000 (10:19 +0200)
commit8af46c784ecfe8929f66b5eaae987f6874953226
tree6f4bbaec5617602575cb02e97f9c8e32f432da6a
parentfa212a97f3a366adcb2046c565e7c978ab067c73
iommu/vt-d: Implement is_attach_deferred iommu ops entry

As a domain is now attached to a device earlier, we should
implement the is_attach_deferred call-back and use it to
defer the domain attach from iommu driver init to device
driver init when iommu is pre-enabled in kdump kernel.

Suggested-by: Tom Murphy <tmurphy@arista.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c