mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
02e2b95fb4
commit
bb880ded7a
1 changed files with 1 additions and 0 deletions
1
memory.c
1
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue