diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-05-13 16:19:55 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-05-14 08:53:31 -0500 |
commit | 6eebf958abf3f3f701116d4524ef88bb9fd6e341 (patch) | |
tree | 3dc67c3bb03950bef367f956c4c28d798dc6c309 /include | |
parent | d34dc45d34618aa2495e892caba62a4aa521b386 (diff) |
osdep, kvm: rename low-level RAM allocation functions
This is preparatory to the introduction of a separate freeing API.
Reported-by: Amos Kong <akong@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Amos Kong <akong@redhat.com>
Message-id: 1368454796-14989-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/osdep.h | 2 | ||||
-rw-r--r-- | include/sysemu/kvm.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 3bcd4ab7cd..06c358846e 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -96,7 +96,7 @@ typedef signed int int_fast16_t; int qemu_daemon(int nochdir, int noclose); void *qemu_memalign(size_t alignment, size_t size); -void *qemu_vmalloc(size_t size); +void *qemu_anon_ram_alloc(size_t size); void qemu_vfree(void *ptr); #define QEMU_MADV_INVALID -1 diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 9735c1dee6..08284ef770 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -142,8 +142,8 @@ int kvm_init_vcpu(CPUState *cpu); int kvm_cpu_exec(CPUArchState *env); #if !defined(CONFIG_USER_ONLY) -void *kvm_vmalloc(ram_addr_t size); -void *kvm_arch_vmalloc(ram_addr_t size); +void *kvm_ram_alloc(ram_addr_t size); +void *kvm_arch_ram_alloc(ram_addr_t size); #endif void kvm_setup_guest_memory(void *start, size_t size); |