From c5114f04d9eaee2e272c23b2fa83434846418a29 Mon Sep 17 00:00:00 2001 From: Uri Lublin Date: Thu, 22 Mar 2007 10:36:09 +0000 Subject: qemu migration/loadvm: fail operation if a component fails to load state --- vl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vl.c b/vl.c index cf759472c..5f29c1c01 100644 --- a/vl.c +++ b/vl.c @@ -4779,6 +4779,7 @@ int qemu_loadvm_state(QEMUFile *f) if (ret < 0) { fprintf(stderr, "qemu: warning: error while loading state for instance 0x%x of device '%s'\n", instance_id, idstr); + goto the_end; } } /* always seek to exact end of record */ @@ -4848,6 +4849,7 @@ int qemu_live_loadvm_state(QEMUFile *f) if (ret < 0) { fprintf(stderr, "qemu: warning: error while loading state for instance 0x%x of device '%s'\n", instance_id, idstr); + goto the_end; } } } -- cgit v1.2.3