Revision 62518b8b kvm-all.c
b/kvm-all.c | ||
---|---|---|
290 | 290 |
return; |
291 | 291 |
} |
292 | 292 |
|
293 |
alloc_size = mem->memory_size >> TARGET_PAGE_BITS / sizeof(d.dirty_bitmap);
|
|
293 |
alloc_size = ((mem->memory_size >> TARGET_PAGE_BITS) + 7) / 8;
|
|
294 | 294 |
d.dirty_bitmap = qemu_mallocz(alloc_size); |
295 | 295 |
|
296 | 296 |
d.slot = mem->slot; |
Also available in: Unified diff