dump: Propagate errors into qmp_dump_guest_memory()
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Thu, 9 Oct 2014 06:13:10 +0000 (14:13 +0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 23 Oct 2014 13:01:29 +0000 (09:01 -0400)
commit37917da2d071ab5273703f5169b0b2fefd40cbb5
tree5b6245cc81c234504e87c6d3cf1572fdaf27a8ea
parent22644cd2c60151a964d9505f4c5f7baf845f20d8
dump: Propagate errors into qmp_dump_guest_memory()

The code calls dump_error() on error, and even passes it a suitable
message.  However, the message is thrown away, and its callers pass
up only success/failure.  All qmp_dump_guest_memory() can do is set
a generic error.

Propagate the errors properly, so qmp_dump_guest_memory() can return
a more useful error.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
dump.c