aboutsummaryrefslogtreecommitdiff
path: root/xen-hvm-stub.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-01-14 16:09:39 +0100
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2016-01-14 16:49:50 +0000
commit37aa7a0e2fc8219cbe2bda4b7d074b47a67ac917 (patch)
tree4891802a2840d852539c9b7170b3798bd1aaf323 /xen-hvm-stub.c
parentdced4d2fcb3961358b12ec3a191dd04505f333af (diff)
downloadqemu-arm-37aa7a0e2fc8219cbe2bda4b7d074b47a67ac917.tar.gz
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>
Diffstat (limited to 'xen-hvm-stub.c')
-rw-r--r--xen-hvm-stub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen-hvm-stub.c b/xen-hvm-stub.c
index 7ff0602147..b9583674ca 100644
--- a/xen-hvm-stub.c
+++ b/xen-hvm-stub.c
@@ -30,7 +30,8 @@ void xen_hvm_inject_msi(uint64_t addr, uint32_t data)
{
}
-void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size, MemoryRegion *mr)
+void xen_ram_alloc(ram_addr_t ram_addr, ram_addr_t size, MemoryRegion *mr,
+ Error **errp)
{
}