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>
printk(XENLOG_INFO "*** Building a PVH Dom%d ***\n", d->domain_id);
- iommu_hwdom_init(d);
-
rc = pvh_setup_p2m(d);
if ( rc )
{
return rc;
}
+ iommu_hwdom_init(d);
+
rc = pvh_load_kernel(d, image, image_headroom, initrd, bootstrap_map(image),
cmdline, &entry, &start_info);
if ( rc )