]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: extract flat_range_coalesced_io_{del,add}
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 Nov 2018 09:42:06 +0000 (10:42 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jan 2019 12:57:24 +0000 (13:57 +0100)
commit909bf76302fc0d9329c4995dac9f8c30b68da864
tree428269406e80c0ee0e9dea9cfe9bb6b59e5d6551
parent4ec37f904803d64a4429dfcd3225455be4203dd9
memory: extract flat_range_coalesced_io_{del,add}

Extract two new functions from memory_region_update_coalesced_range_as.
To avoid duplication in the creation of the MemoryRegionSection, use
MEMORY_LISTENER_UPDATE_REGION instead of MEMORY_LISTENER_CALL
to invoke the listener callback.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
memory.c