On Wed, Feb 12, 2020 at 02:42:40PM +0100, David Hildenbrand wrote: > qemu_vfio_undo_mapping() will decrement the number of mappings and > reshuffle the array elements to fit into the reduced size. > > Iterating over all elements like this does not work as expected, let's make > sure to remove all mappings properly. > > Cc: Richard Henderson <[email protected]> > Cc: Paolo Bonzini <[email protected]> > Cc: Eduardo Habkost <[email protected]> > Cc: Marcel Apfelbaum <[email protected]> > Cc: Alex Williamson <[email protected]> > Cc: Stefan Hajnoczi <[email protected]> > Signed-off-by: David Hildenbrand <[email protected]>
Reviewed-by: Peter Xu <[email protected]> -- Peter Xu
