OSDN Git Service

exec: add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr
authorHu Tao <hutao@cn.fujitsu.com>
Tue, 9 Sep 2014 05:27:54 +0000 (13:27 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Sep 2014 11:41:25 +0000 (13:41 +0200)
commitef701d7b6f9e33cef11c823b140a0f93e150b27b
treed06f422bf8f59c7947fd0d6e7a1ddeed21312110
parentc261d774fb9093d00e0938a19f502fb220f62718
exec: add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr

Add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr so that
we can handle errors.

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
[Assert ptr != NULL in memory_region_init_ram_ptr. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c
include/exec/ram_addr.h
memory.c