aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Lublin <uril@qumranet.com>2007-03-22 10:36:09 +0000
committerUri Lublin <uril@qumranet.com>2007-03-22 10:36:09 +0000
commitc5114f04d9eaee2e272c23b2fa83434846418a29 (patch)
tree500cfd6cae740084fd3c208918991340edd7cddc
parentafe8c89825d9cb8e7fce574e4fd36ecc3d0bb238 (diff)
qemu migration/loadvm: fail operation if a component fails to load statekvm-18
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}
}