iommu/amd: Use is_attach_deferred call-back
authorBaoquan He <bhe@redhat.com>
Wed, 9 Aug 2017 08:33:41 +0000 (16:33 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Aug 2017 16:14:39 +0000 (18:14 +0200)
commitdf3f7a6e8e855e4ff533508807cd7c3723faa51f
tree454b1a92a433b8b63bb1f820f829dff32a62f337
parente01d1913b0d0817191418381a6fcebaa01abde2a
iommu/amd: Use is_attach_deferred call-back

Implement call-back is_attach_deferred and use it to defer the
domain attach from iommu driver init to device driver init when
iommu is pre-enabled in kdump kernel.

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c