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>
This commit is contained in:
parent
d34dc45d34
commit
6eebf958ab
9 changed files with 18 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue