]> asedeno.scripts.mit.edu Git - linux.git/commit
vfio/type1: Update iova list on detach
authorShameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Tue, 23 Jul 2019 16:06:34 +0000 (17:06 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 19 Aug 2019 19:25:03 +0000 (13:25 -0600)
commitf45daadfe1add9f468f3ae1f7e2d9b235fe80748
tree0037f2f129368b7dd6a84a0d32a3471b326f4250
parentaf029169b8fdae31064624d60b5469a3da95ad32
vfio/type1: Update iova list on detach

Get a copy of iova list on _group_detach and try to update the list.
On success replace the current one with the copy. Leave the list as
it is if update fails.

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