kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] migration: loadvm_state: if a device idstr/instance not found fail the migration
@ 2008-09-28 15:08 Uri Lublin
  2008-09-28 15:12 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Uri Lublin @ 2008-09-28 15:08 UTC (permalink / raw)
  To: kvm; +Cc: Uri Lublin

Instead of just printing an error message.

Signed-off-by: Uri Lublin <uril@qumranet.com>
---
 qemu/vl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/qemu/vl.c b/qemu/vl.c
index b34a114..9a4a4ec 100644
--- a/qemu/vl.c
+++ b/qemu/vl.c
@@ -7117,6 +7117,8 @@ int qemu_live_loadvm_state(QEMUFile *f)
         if (!se) {
             fprintf(stderr, "qemu: warning: instance 0x%x of device '%s' not present in current VM\n", 
                     instance_id, idstr);
+            ret = -1;
+            goto the_end;
         } else {
             if (version_id > se->version_id) { /* src version > dst version */
                 fprintf(stderr, "migration:version mismatch:%s:%d(s)>%d(d)\n",
-- 
1.6.0.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-28 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 15:08 [PATCH] migration: loadvm_state: if a device idstr/instance not found fail the migration Uri Lublin
2008-09-28 15:12 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).