diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2012-04-12 14:01:04 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2012-05-10 10:32:11 +0200 |
| commit | 71df14fcbe5035d0728f30463414301eb62ad865 (patch) | |
| tree | 173287c2a889188b8fb106e24212ea93c9e28b7b /tests/qemu-iotests/iotests.py | |
| parent | 63090dac3a7c5fe02b4285cf2e5fb7017d2c7b0e (diff) | |
| download | focaccia-qemu-71df14fcbe5035d0728f30463414301eb62ad865.tar.gz focaccia-qemu-71df14fcbe5035d0728f30463414301eb62ad865.zip | |
block: fix allocation size for dirty bitmap
Also reuse elsewhere the new constant for sizeof(unsigned long) * 8. The dirty bitmap is allocated in bits but declared as unsigned long. Thus, its memory block is accessed beyond its end unless the image is a multiple of 64 chunks (i.e. a multiple of 64 MB). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
0 files changed, 0 insertions, 0 deletions