Revision 1eec614b kvm-all.c
b/kvm-all.c | ||
---|---|---|
220 | 220 |
alloc_size = mem->memory_size >> TARGET_PAGE_BITS / sizeof(d.dirty_bitmap); |
221 | 221 |
d.dirty_bitmap = qemu_mallocz(alloc_size); |
222 | 222 |
|
223 |
if (d.dirty_bitmap == NULL) { |
|
224 |
dprintf("Could not allocate dirty bitmap\n"); |
|
225 |
return; |
|
226 |
} |
|
227 |
|
|
228 | 223 |
d.slot = mem->slot; |
229 | 224 |
dprintf("slot %d, phys_addr %llx, uaddr: %llx\n", |
230 | 225 |
d.slot, mem->start_addr, mem->phys_offset); |
... | ... | |
295 | 290 |
return -EINVAL; |
296 | 291 |
|
297 | 292 |
s = qemu_mallocz(sizeof(KVMState)); |
298 |
if (s == NULL) |
|
299 |
return -ENOMEM; |
|
300 | 293 |
|
301 | 294 |
for (i = 0; i < ARRAY_SIZE(s->slots); i++) |
302 | 295 |
s->slots[i].slot = i; |
Also available in: Unified diff