diff options
author | Igor Mitsyanko | 2012-08-10 16:45:11 +0200 |
---|---|---|
committer | Blue Swirl | 2012-08-11 14:23:46 +0200 |
commit | 5fda043f9c8b8ab18da2704de8e77b7c86fa9435 (patch) | |
tree | 259e39dee57e364caa95b354779fb794b69949cf /configure | |
parent | Makefile: add qapi.py dependencies (diff) | |
download | qemu-5fda043f9c8b8ab18da2704de8e77b7c86fa9435.tar.gz qemu-5fda043f9c8b8ab18da2704de8e77b7c86fa9435.tar.xz qemu-5fda043f9c8b8ab18da2704de8e77b7c86fa9435.zip |
exec.c: fix dirty bitmap reallocation
For each newly created RAM block, dirty bitmap is reallocated with g_realloc, which doesn't
make any promises on initial content of new extra data in returned buffer. In theory,
we initialize this new data with cpu_physical_memory_set_dirty_range() call. The
problem is, cpu_physical_memory_set_dirty_range() has a side effect of incrementing
ram_list.dirty_pages variable, but only for pages which are not already dirty. And
page "cleanliness" is determined using the same not yet uninitialized dirty bitmap
we've just reallocated. This results in inconsistency between real dirty page number
and value in ram_list.dirty_pages variable, which in turn could (and will) result
in errors during VM migration.
Zero initialize new dirty bitmap bytes to fix this problem.
Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions