x86/pvh: change the order of the iommu initialization for Dom0
PATCH 1/1 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.
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>
--- xen/arch/x86/hvm/dom0_build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/hvm/dom0_build.c +2 -2
@@ -1093,8 +1093,6 @@ int __init dom0_construct_pvh(struct domain *d, const module_t *image,printk (XENLOG_INFO "*** Building a PVH Dom%d ***\n" , d->domain_id); -iommu_hwdom_init (d); - rc =pvh_setup_p2m (d);if ( rc ) {
@@ -1102,6 +1100,8 @@ int __init dom0_construct_pvh(struct domain *d, const module_t *image,return rc; } +iommu_hwdom_init (d); + rc =pvh_load_kernel (d, image, image_headroom, initrd,bootstrap_map (image), cmdline, &entry, &start_info);if ( rc )
Signature · 7 lines
2.18.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 24.07.18 at 13:29, <[email protected]> wrote:
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.
Quoted 7 lines
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é <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel