]> git.proxmox.com Git - mirror_qemu.git/commit - numa.c
memory: move mem_path handling to memory_region_allocate_system_memory
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 May 2014 09:43:19 +0000 (17:43 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 15:44:19 +0000 (18:44 +0300)
commit0b183fc871e61f4a586fdef2c0f880b6a856e444
tree225cde4ec5cb55663ed75c408f222b367f14057d
parent7febe36f9adbb34756a6a6765a36ea49b6e502ac
memory: move mem_path handling to memory_region_allocate_system_memory

Like the previous patch did in exec.c, split memory_region_init_ram and
memory_region_init_ram_from_file, and push mem_path one step further up.
Other RAM regions than system memory will now be backed by regular RAM.

Also, boards that do not use memory_region_allocate_system_memory will
not support -mem-path anymore.  This can be changed before the patches
are merged by migrating boards to use the function.

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>
exec.c
include/exec/memory.h
memory.c
numa.c