[Qemu-devel] [PATCH 3/3] vfio: unmap and free BAR data in instance_finalize

2015-02-06 Thread Paolo Bonzini
In the case of VFIO, the unrealize callback is too early to munmap the BARs. The munmap must be delayed until memory accesses are complete. To do this, split vfio_unmap_bars in two. The removal step, now called vfio_unregister_bars, remains in vfio_exitfn. The reclamation step is vfio_unmap_bars

[Qemu-devel] [PATCH 3/3] vfio: unmap and free BAR data in instance_finalize

2015-02-04 Thread Paolo Bonzini
In the case of VFIO, the unrealize callback is too early to munmap the BARs. The munmap must be delayed until memory accesses are complete. To do this, split vfio_unmap_bars in two. The removal step, now called vfio_unregister_bars, remains in vfio_exitfn. The reclamation step is vfio_unmap_bars