Skip to content

Commit 3389a8d

Browse files
roygerjbeulich
authored andcommitted
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: e8afe11 ("iommu: elide flushing for higher order map/unmap operations") Signed-off-by: Roger Pau Monné <[email protected]> Reviewed-by: Paul Durrant <[email protected]> Reviewed-by: Jan Beulich <[email protected]> Release-acked-by: Juergen Gross <[email protected]>
1 parent ba9b5a0 commit 3389a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xen/drivers/passthrough/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void __hwdom_init iommu_hwdom_init(struct domain *d)
202202
== PGT_writable_page) )
203203
mapping |= IOMMUF_writable;
204204

205-
ret = iommu_map(d, _dfn(dfn), _mfn(mfn), mapping, 0,
205+
ret = iommu_map(d, _dfn(dfn), _mfn(mfn), 0, mapping,
206206
&flush_flags);
207207

208208
if ( !rc )

0 commit comments

Comments
 (0)