diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2012-12-04 11:38:38 +1100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-12-12 15:03:31 -0600 |
commit | 7ec81e56edc2b2007ce0ae3982aa5c18af9546ab (patch) | |
tree | cf7086a39e1e4632ac34cbf6d6724f90f8c8adc9 /qemu-common.h | |
parent | 1c97e303d4ea80a2691334b0febe87a50660f99d (diff) |
Fix off-by-1 error in RAM migration code
The code for migrating (or savevm-ing) memory pages starts off by creating
a dirty bitmap and filling it with 1s. Except, actually, because bit
addresses are 0-based it fills every bit except bit 0 with 1s and puts an
extra 1 beyond the end of the bitmap, potentially corrupting unrelated
memory. Oops. This patch fixes it.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-common.h')
0 files changed, 0 insertions, 0 deletions