]> git.ipfire.org Git - thirdparty/qemu.git/commit
xen-hvm: Clean up xen_ram_alloc() error handling
authorMarkus Armbruster <armbru@redhat.com>
Thu, 14 Jan 2016 15:09:39 +0000 (16:09 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 14 Jan 2016 16:49:50 +0000 (16:49 +0000)
commit37aa7a0e2fc8219cbe2bda4b7d074b47a67ac917
tree4891802a2840d852539c9b7170b3798bd1aaf323
parentdced4d2fcb3961358b12ec3a191dd04505f333af
xen-hvm: Clean up xen_ram_alloc() error handling

xen_ram_alloc() dies with hw_error() on error, even though its caller
ram_block_add() handles errors just fine.  Add an Error **errp
parameter and use it.

Leave case RUN_STATE_INMIGRATE alone, because that looks like some
kind of warning.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
exec.c
include/hw/xen/xen.h
xen-hvm-stub.c
xen-hvm.c