]> git.proxmox.com Git - mirror_qemu.git/commit - backends/hostmem.c
hostmem: allow preallocation of any memory region
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Jun 2014 11:15:23 +0000 (19:15 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 15:44:20 +0000 (18:44 +0300)
commita35ba7be4b696d4c7b47318fd2022e6c3eca0a63
treef206d1f7d758c159e96724fb066c8c6c3d38c57b
parent605d0a945d020e3024aa7faf8a0e8b471371d8ff
hostmem: allow preallocation of any memory region

And allow preallocation of file-based memory even without -mem-prealloc.
Some care is necessary because -mem-prealloc does not allow disabling
preallocation for hostmem-file.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
backends/hostmem-file.c
backends/hostmem.c
exec.c
include/exec/memory.h
include/exec/ram_addr.h
include/sysemu/hostmem.h
memory.c