]> git.proxmox.com Git - mirror_qemu.git/commit - system/physmem.c
exec: Return RAMBlock pointer from allocating functions
authorFam Zheng <famz@redhat.com>
Tue, 1 Mar 2016 06:18:18 +0000 (14:18 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 7 Mar 2016 12:18:28 +0000 (13:18 +0100)
commit528f46af6ecd1e300db18684969104d4067b867b
tree8b2d1ff05b51f7246084ea848ed1d420a285d0b7
parentbb8f32c0318cb6c6e13e09ec0f35e21eff246413
exec: Return RAMBlock pointer from allocating functions

Previously we return RAMBlock.offset; now return the pointer to the
whole structure.

ram_block_add returns void now, error is completely passed with errp.

Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-Id: <1456813104-25902-2-git-send-email-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c
include/exec/ram_addr.h
memory.c