]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/type1: Check reserved region conflict and update iova list
authorShameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Tue, 23 Jul 2019 16:06:33 +0000 (17:06 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 19 Aug 2019 19:24:48 +0000 (13:24 -0600)
commitae60438618ad1974198ef240d31bc3be4212f9ae
tree412a11da333d9c28233fd5a53b8469d6a9d32b42
parent77da3376bb38aed737445d8dae6fb1f183bbea2c
vfio/type1: Check reserved region conflict and update iova list

This retrieves the reserved regions associated with dev group and
checks for conflicts with any existing dma mappings. Also update
the iova list excluding the reserved regions.

Reserved regions with type IOMMU_RESV_DIRECT_RELAXABLE are
excluded from above checks as they are considered as directly
mapped regions which are known to be relaxable.

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