Patchwork [v2,5/7] memory: Flush coalesced MMIO on mapping and state changes

login
register
mail settings
Submitter Jan Kiszka
Date June 27, 2012, 4:27 p.m.
Message ID <fc36b11699350cdcc5a67cb5f67164a9ce6dfa39.1340814444.git.jan.kiszka@siemens.com>
Download mbox | patch
Permalink /patch/167706/
State New
Headers show

Comments

Jan Kiszka - June 27, 2012, 4:27 p.m.
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>
---
 memory.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/memory.c b/memory.c
index 902a8c1..7cffddf 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;
 }