aboutsummaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-08-23 13:02:32 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-09-11 18:15:34 -0300
commitbb880ded7a6a77b2a7818e6302ac55fbd9ba5e86 (patch)
treeaf2834489939ae069041e14476bf6d36f7f16388 /memory.c
parent02e2b95fb4bcf8b0a512c5eb449cfb9a1ea3d3b7 (diff)
memory: Flush coalesced MMIO on mapping and state changes
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>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/memory.c b/memory.c
index 4deeeac575..4f3ade06dd 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;
}