mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
exec: Simplify the guest physical memory allocation hook
Make it a generic hook rather than a KVM hook. Less code and ifdeffery. Since the only user of the hook is old S390 KVM, there's hope we can get rid of it some day. Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Acked-by: Laszlo Ersek <lersek@redhat.com> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Message-id: 1375276272-15988-5-git-send-email-armbru@redhat.com Signed-off-by: Anthony Liguori <anthony@codemonkey.ws>
This commit is contained in:
parent
3435f39513
commit
91138037cb
5 changed files with 21 additions and 35 deletions
13
kvm-all.c
13
kvm-all.c
|
@ -1812,19 +1812,6 @@ int kvm_has_intx_set_mask(void)
|
|||
return kvm_state->intx_set_mask;
|
||||
}
|
||||
|
||||
void *kvm_ram_alloc(ram_addr_t size)
|
||||
{
|
||||
#ifdef TARGET_S390X
|
||||
void *mem;
|
||||
|
||||
mem = kvm_arch_ram_alloc(size);
|
||||
if (mem) {
|
||||
return mem;
|
||||
}
|
||||
#endif
|
||||
return qemu_anon_ram_alloc(size);
|
||||
}
|
||||
|
||||
void kvm_setup_guest_memory(void *start, size_t size)
|
||||
{
|
||||
#ifdef CONFIG_VALGRIND_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue