]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
iommu: fix order of arguments in iommu_map call at iommu_hwdom_init
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 25 Jan 2019 08:49:50 +0000 (09:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Jan 2019 08:49:50 +0000 (09:49 +0100)
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é <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/drivers/passthrough/iommu.c

index 17c0c729a6f33f9cc5bc2dd94553366c538eddf4..5ecaa10bb4e7684a25803bfe7476579746b8fe17 100644 (file)
@@ -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 )