From: Jan Kiszka Date: Thu, 23 Aug 2012 11:02:32 +0000 (+0200) Subject: memory: Flush coalesced MMIO on mapping and state changes X-Git-Tag: pull-nvme-20200902~7514^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bb880ded7a6a77b2a7818e6302ac55fbd9ba5e86;p=qemu-nvme.git 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 Signed-off-by: Marcelo Tosatti --- 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; }