x86/pvh: change the order of the iommu initialization for Dom0
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 24 Jul 2018 13:55:39 +0000 (15:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Jul 2018 13:55:39 +0000 (15:55 +0200)
commit173c7803592065d27bf2e60d50e08e197a0efa83
tree5873b1126116ddbae4f178429f3e9b824679861f
parentdeb8ba12e5e91f78a0f3a72fd28668369f51f588
x86/pvh: change the order of the iommu initialization for Dom0

The iommu initialization will also create MMIO mappings in the Dom0
p2m, so the paging memory pool needs to be allocated or else iommu
initialization will fail.

Move the call to init the iommu after the Dom0 p2m has been setup in
order to solve this.

Note that issues caused by this wrong ordering have only been seen
when using shadow paging.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/dom0_build.c