summaryrefslogtreecommitdiffstats
path: root/hw/isa/isa-bus.c
diff options
context:
space:
mode:
authorPaolo Bonzini2015-02-10 18:25:44 +0100
committerAlex Williamson2015-02-10 18:25:44 +0100
commitba5e6bfa1aee29a8f72c5538c565dfb9889cf273 (patch)
tree95446193dc2f8c25271e2dfd11e513f9201766c7 /hw/isa/isa-bus.c
parentvfio: free dynamically-allocated data in instance_finalize (diff)
downloadqemu-ba5e6bfa1aee29a8f72c5538c565dfb9889cf273.tar.gz
qemu-ba5e6bfa1aee29a8f72c5538c565dfb9889cf273.tar.xz
qemu-ba5e6bfa1aee29a8f72c5538c565dfb9889cf273.zip
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 'hw/isa/isa-bus.c')
0 files changed, 0 insertions, 0 deletions