]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
iommu: fix order of arguments in iommu_map call at iommu_hwdom_init
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 24 Jan 2019 10:06:47 +0000 (11:06 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Thu, 24 Jan 2019 10:06:47 +0000 (11:06 +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>
---
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Paul Durrant <paul.durrant@citrix.com>
xen/drivers/passthrough/iommu.c

index bc613e224d09e9f6703c9c99548545f41e3fc956..528cadd1d788e0aa78b5a2e1ee5d1cfce3418f69 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 )