diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-16 15:39:51 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-24 18:43:42 +0200 |
commit | f43793c7caab49c68b41c3b8524fc35b4c206856 (patch) | |
tree | cc38cd0280623e920a707cd6625a4526b2928fcf /exec.c | |
parent | 86a8623692b1b559a419a92eb8b6897c221bca74 (diff) | |
download | hqemu-f43793c7caab49c68b41c3b8524fc35b4c206856.zip hqemu-f43793c7caab49c68b41c3b8524fc35b4c206856.tar.gz |
memory: populate FlatView for new address spaces
Even a new address space might have a non-empty FlatView. In order
to initialize it properly, address_space_init should (a) call
memory_region_transaction_commit after the address space is inserted
into the list; (b) force memory_region_transaction_commit to do something.
This bug was latent so far because all address spaces started empty, including
the PCI address space where the bus master region is initially disabled.
However, the target address space of an IOMMU is usually rooted at
get_system_memory(), which might not be empty at the time the IOMMU is created.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'exec.c')
0 files changed, 0 insertions, 0 deletions