iommu: Move dom0 setup code to __hwdom_init
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Fri, 11 Apr 2014 09:19:16 +0000 (11:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 11 Apr 2014 09:19:16 +0000 (11:19 +0200)
commit0a1c4db2481b13b2212d43923e996da3a379c26a
tree1f29aaae9a7afd1b0ce69067a530563381ff7a12
parent97587d01b36b1e8f406c7c93e5ae9c50646bcaeb
iommu: Move dom0 setup code to __hwdom_init

When the hardware domain is split from domain 0, the initialization code
for the hardware domain cannot be in the __init section, since the
actual domain creation happens after these sections have been discarded.
Create a __hwdom_init section designator to annotate these functions,
and control it using the XSM configuration option for now (since XSM is
required to take advantage of the security benefits of disaggregation).

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/setup.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/quirks.c
xen/drivers/passthrough/vtd/x86/vtd.c
xen/include/asm-x86/config.h
xen/include/xen/init.h