]> git.proxmox.com Git - qemu.git/commitdiff
fix broken migration
authorGlauber Costa <glommer@redhat.com>
Fri, 24 Jul 2009 20:20:23 +0000 (16:20 -0400)
committerGlauber Costa <glommer@redhat.com>
Wed, 29 Jul 2009 14:39:04 +0000 (10:39 -0400)
While fixing migration with -S, commit
89befdd1a6b18215153b8976682d57b7d03d5782 broke the rest of us. Poor
glommer, with a poor family, spare him his life from this monstruosity.

Since the unconditional vm_start, not autostart was the villain, I'm putting
back autostart. Let me know if you prefer other solutions, it doesn't really matter,
doesn't really matter to me.

Any way the wind blows...

Signed-off-by: Glauber Costa <glommer@redhat.com>
CC: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Glauber Costa <glommer@redhat.com>
vl.c

diff --git a/vl.c b/vl.c
index 6cd0ce7500cb299e0d855ec5193faa920eb77ce4..0e4672785a164cdd892b68067a45dc84075c05c6 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -5721,8 +5721,10 @@ int main(int argc, char **argv, char **envp)
     if (loadvm)
         do_loadvm(loadvm);
 
-    if (incoming)
+    if (incoming) {
+        autostart = 0;
         qemu_start_incoming_migration(incoming);
+    }
 
     if (autostart)
         vm_start();