Namely Dom0 suffers from commit
5ae03990c1 ("xen/vtd: create RMRR
mapping") having removed the creation of such mappings for non-
translated guests.
Reported-by: Malcolm Crossley <malcolm.crossley@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
int ret;
if ( !paging_mode_translate(p2m->domain) )
- return 0;
+ {
+ if ( !need_iommu(d) )
+ return 0;
+ return iommu_map_page(d, gfn, gfn, IOMMUF_readable|IOMMUF_writable);
+ }
gfn_lock(p2m, gfn, 0);
int ret;
if ( !paging_mode_translate(d) )
- return 0;
+ {
+ if ( !need_iommu(d) )
+ return 0;
+ return iommu_unmap_page(d, gfn);
+ }
gfn_lock(p2m, gfn, 0);