From: Glauber Costa Date: Fri, 24 Jul 2009 20:20:23 +0000 (-0400) Subject: fix broken migration X-Git-Tag: v0.11.0-rc1~10 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1d600827f6980d29f1d513daffa59714e10041f0;p=qemu.git fix broken migration 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 CC: Paolo Bonzini Signed-off-by: Anthony Liguori --- diff --git a/vl.c b/vl.c index ce213c2cd..015f63131 100644 --- a/vl.c +++ b/vl.c @@ -6075,8 +6075,10 @@ int main(int argc, char **argv, char **envp) if (loadvm) do_loadvm(cur_mon, loadvm); - if (incoming) + if (incoming) { + autostart = 0; qemu_start_incoming_migration(incoming); + } if (autostart) vm_start();