diff mbox

[6/9] memory: Flush coalesced MMIO on mapping and state changes

Message ID bb880ded7a6a77b2a7818e6302ac55fbd9ba5e86.1347398795.git.mtosatti@redhat.com
State New
Headers show

Commit Message

Marcelo Tosatti Sept. 11, 2012, 9:26 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/memory.c b/memory.c
index 4deeeac..4f3ade0 100644
--- 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;
 }