mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
|
@ -1790,17 +1790,17 @@ int kvm_has_intx_set_mask(void)
|
|||
return kvm_state->intx_set_mask;
|
||||
}
|
||||
|
||||
void *kvm_vmalloc(ram_addr_t size)
|
||||
void *kvm_ram_alloc(ram_addr_t size)
|
||||
{
|
||||
#ifdef TARGET_S390X
|
||||
void *mem;
|
||||
|
||||
mem = kvm_arch_vmalloc(size);
|
||||
mem = kvm_arch_ram_alloc(size);
|
||||
if (mem) {
|
||||
return mem;
|
||||
}
|
||||
#endif
|
||||
return qemu_vmalloc(size);
|
||||
return qemu_anon_ram_alloc(size);
|
||||
}
|
||||
|
||||
void kvm_setup_guest_memory(void *start, size_t size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue