On Fri, 29 Jan 2021 08:54:08 -0800 Steve Sistare <steven.sistare@xxxxxxxxxx> wrote: > Modify the iteration in vfio_dma_do_unmap so it does not depend on deletion > of each dma entry. Add a variant of vfio_find_dma that returns the entry > with the lowest iova in the search range to initialize the iteration. No > externally visible change, but this behavior is needed in the subsequent > update-vaddr patch. > > Signed-off-by: Steve Sistare <steven.sistare@xxxxxxxxxx> > --- > drivers/vfio/vfio_iommu_type1.c | 35 ++++++++++++++++++++++++++++++++++- > 1 file changed, 34 insertions(+), 1 deletion(-) With the function name tweak: Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>