iommu: set correct IOMMU entries when !iommu_hap_pt_share
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 5 Jun 2014 15:42:49 +0000 (17:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 Jun 2014 15:42:49 +0000 (17:42 +0200)
commit203746bc36b41443d0eec78819f153fb59bc68d1
treed26415fa3caa61208e5d1d6a27e18169df4f5a92
parent37201c620379d3afdaafd85009312b17ab9842c3
iommu: set correct IOMMU entries when !iommu_hap_pt_share

If the memory map is not shared between HAP and IOMMU we fail to set
correct IOMMU mappings for memory types other than p2m_ram_rw.

This patchs adds IOMMU support for the following memory types:
p2m_grant_map_rw, p2m_map_foreign, p2m_ram_ro, p2m_grant_map_ro and
p2m_ram_logdirty.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Tested-by: David Zhuang <david.zhuang@oracle.com>
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m-pt.c
xen/include/asm-x86/p2m.h