From: Roger Pau Monné Date: Fri, 25 Jan 2019 08:49:50 +0000 (+0100) Subject: iommu: fix order of arguments in iommu_map call at iommu_hwdom_init X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3389a8dc8c5753a3c84744923cd0193395e3f2a9;p=people%2Fpauldu%2Fxen.git iommu: fix order of arguments in iommu_map call at iommu_hwdom_init The order of the page_order and the flags parameters are inverted in the call to iommu_map made in iommu_hwdom_init. Fixes: e8afe1124cc1 ("iommu: elide flushing for higher order map/unmap operations") Signed-off-by: Roger Pau Monné Reviewed-by: Paul Durrant Reviewed-by: Jan Beulich Release-acked-by: Juergen Gross --- diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c index 17c0c729a6..5ecaa10bb4 100644 --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -202,7 +202,7 @@ void __hwdom_init iommu_hwdom_init(struct domain *d) == PGT_writable_page) ) mapping |= IOMMUF_writable; - ret = iommu_map(d, _dfn(dfn), _mfn(mfn), mapping, 0, + ret = iommu_map(d, _dfn(dfn), _mfn(mfn), 0, mapping, &flush_flags); if ( !rc )