diff options
| author | Paolo Bonzini | 2015-03-29 09:31:43 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2015-06-05 17:10:00 +0200 |
| commit | ec05ec26f940564b1e07bf88857035ec27e21dd8 (patch) | |
| tree | c9fdeb52da1302c3eec2a3792c5a711c03a76ae5 /include/exec | |
| parent | memory: make cpu_physical_memory_sync_dirty_bitmap() fully atomic (diff) | |
| download | qemu-ec05ec26f940564b1e07bf88857035ec27e21dd8.tar.gz qemu-ec05ec26f940564b1e07bf88857035ec27e21dd8.tar.xz qemu-ec05ec26f940564b1e07bf88857035ec27e21dd8.zip | |
memory: use mr->ram_addr in "is this RAM?" assertions
mr->terminates alone doesn't guarantee that we are looking at a RAM region.
mr->ram_addr also has to be checked, in order to distinguish RAM and I/O
regions.
So, do the following:
1) add a new define RAM_ADDR_INVALID, and test it in the assertions
instead of mr->terminates
2) IOMMU regions were not setting mr->ram_addr to a bogus value, initialize
it in the instance_init function so that the new assertions would fire
for IOMMU regions as well.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
