iommu/vt-d: Allocate si_domain in init_dmars()
authorJoerg Roedel <jroedel@suse.de>
Fri, 12 Jun 2015 10:27:16 +0000 (12:27 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 16 Jun 2015 08:59:34 +0000 (10:59 +0200)
commit86080ccc223aabf8d0b85a504f4f06aa88e82fb3
tree12ecb1693240725446127943322382fc1844cc82
parentcf484d0e6939ce287e65880ffe48860165fe5cb5
iommu/vt-d: Allocate si_domain in init_dmars()

This seperates the allocation of the si_domain from its
assignment to devices. It makes sure that the iommu=pt case
still works in the kdump kernel, when we have to defer the
assignment of devices to domains to device driver
initialization time.

Tested-by: ZhenHua Li <zhen-hual@hp.com>
Tested-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c