As we introduced IOMMU_RESV_NOMAP and IOMMU_RESV_MSI regions, let's prevent those new regions from being mapped.
Signed-off-by: Eric Auger <eric.au...@redhat.com> --- drivers/iommu/iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 6ee529f..a4530ad 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -343,6 +343,9 @@ static int iommu_group_create_direct_mappings(struct iommu_group *group, start = ALIGN(entry->start, pg_size); end = ALIGN(entry->start + entry->length, pg_size); + if (entry->prot & IOMMU_RESV_MASK) + continue; + for (addr = start; addr < end; addr += pg_size) { phys_addr_t phys_addr; -- 1.9.1 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu