Lines Matching refs:new_block
2463 RAMBlock *new_block; in qemu_ram_alloc() local
2466 new_block = qemu_malloc(sizeof(*new_block)); in qemu_ram_alloc()
2470 new_block->host = mmap((void*)0x1000000, size, PROT_EXEC|PROT_READ|PROT_WRITE, in qemu_ram_alloc()
2473 new_block->host = qemu_vmalloc(size); in qemu_ram_alloc()
2476 madvise(new_block->host, size, MADV_MERGEABLE); in qemu_ram_alloc()
2478 new_block->offset = last_ram_offset; in qemu_ram_alloc()
2479 new_block->length = size; in qemu_ram_alloc()
2481 new_block->next = ram_blocks; in qemu_ram_alloc()
2482 ram_blocks = new_block; in qemu_ram_alloc()
2492 kvm_setup_guest_memory(new_block->host, size); in qemu_ram_alloc()
2494 return new_block->offset; in qemu_ram_alloc()