]> asedeno.scripts.mit.edu Git - linux.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)
commit1108696aecf048433bf77806570f57bdbb6ef724
tree23181737e033df46fde8b81a2b65b4dd61f5a3d1
parentd1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1
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