Do not disable autostart for live migration
If the user does not want autostart, they can specify -S.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/vl.c b/vl.c
index 8b2b289..55d5bbe 100644
--- a/vl.c
+++ b/vl.c
@@ -6040,12 +6040,10 @@
do_loadvm(cur_mon, loadvm);
if (incoming) {
- autostart = 0;
qemu_start_incoming_migration(incoming);
- }
-
- else if (autostart)
+ } else if (autostart) {
vm_start();
+ }
#ifndef _WIN32
if (daemonize) {