]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/type1: Introduce iova list and add iommu aperture validity check
authorShameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Tue, 23 Jul 2019 16:06:32 +0000 (17:06 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 19 Aug 2019 19:24:14 +0000 (13:24 -0600)
commit77da3376bb38aed737445d8dae6fb1f183bbea2c
tree23181737e033df46fde8b81a2b65b4dd61f5a3d1
parent6b38d225a6294690a0d8bba8e80aab3c00f2d685
vfio/type1: Introduce iova list and add iommu aperture validity check

This introduces an iova list that is valid for dma mappings. Make
sure the new iommu aperture window doesn't conflict with the current
one or with any existing dma mappings during attach.

Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c