Skip to content
Snippets Groups Projects
user avatar
Paolo Bonzini authored
address_space_destroy_dispatch is called from an RCU callback and hence
outside the iothread mutex (BQL).  However, after address_space_destroy
no new accesses can hit the destroyed AddressSpace so it is not necessary
to observe changes to the memory map.  Move the memory_listener_unregister
call earlier, to make it thread-safe again.

Reported-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Fixes: 374f2981
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
6e48e8f9
History
Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team