iommu: Only allow iommu_map/unmap for paging domains
authorJoerg Roedel <jroedel@suse.de>
Thu, 26 Mar 2015 12:43:06 +0000 (13:43 +0100)
committerJoerg Roedel <jroedel@suse.de>
Tue, 31 Mar 2015 13:31:57 +0000 (15:31 +0200)
commita10315e5efb86c689142a7e7927125889f3682e6
tree20c6548691cf2279778ffdbb1786a1bff826f536
parent8539c7c16b970258e14761d8a1f7d10fe798031a
iommu: Only allow iommu_map/unmap for paging domains

Check for the new __IOMMU_DOMAIN_PAGING flag before calling
into the iommu drivers ->map and ->unmap call-backs.

Tested-by: Thierry Reding <treding@nvidia.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c