]> git.proxmox.com Git - mirror_qemu.git/commitdiff
memory: Flush coalesced MMIO on mapping and state changes
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 23 Aug 2012 11:02:32 +0000 (13:02 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Sep 2012 21:15:34 +0000 (18:15 -0300)
Flush pending coalesced MMIO before performing mapping or state changes
that could affect the event orderings or route the buffered requests to
a wrong region.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
memory.c

index 4deeeac57547e3eedee7a82cb1256639f7ab14f9..4f3ade06dd6ee508dcdf46a9a2808cf4e9b10576 100644 (file)
--- a/memory.c
+++ b/memory.c
@@ -733,6 +733,7 @@ static void address_space_update_topology(AddressSpace *as)
 
 void memory_region_transaction_begin(void)
 {
+    qemu_flush_coalesced_mmio_buffer();
     ++memory_region_transaction_depth;
 }