aboutsummaryrefslogtreecommitdiff
path: root/blockjob.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-02-10 10:25:44 -0700
committerAlex Williamson <alex.williamson@redhat.com>2015-02-10 10:25:44 -0700
commitba5e6bfa1aee29a8f72c5538c565dfb9889cf273 (patch)
tree95446193dc2f8c25271e2dfd11e513f9201766c7 /blockjob.c
parent77a10d04d033484a913a5ee76eed31a9acc57bae (diff)
downloadqemu-ba5e6bfa1aee29a8f72c5538c565dfb9889cf273.zip
qemu-ba5e6bfa1aee29a8f72c5538c565dfb9889cf273.tar.gz
qemu-ba5e6bfa1aee29a8f72c5538c565dfb9889cf273.tar.bz2
vfio: unmap and free BAR data in instance_finalize
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 and is moved to the instance_finalize callback. Similarly, quirk MemoryRegions have to be removed during vfio_unregister_bars, but freeing the data structure must be delayed to vfio_unmap_bars. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'blockjob.c')
0 files changed, 0 insertions, 0 deletions