Patchwork Do not disable autostart for live migration

login
register
mail settings
Submitter Avi Kivity
Date Aug. 9, 2009, 11:39 a.m.
Message ID <1249817960-11020-1-git-send-email-avi@redhat.com>
Download mbox | patch
Permalink /patch/31016/
State Superseded
Headers show

Comments

Avi Kivity - Aug. 9, 2009, 11:39 a.m.
If the user does not want autostart, they can specify -S.

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 vl.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

Patch

diff --git a/vl.c b/vl.c
index a526cb0..cf7fb3b 100644
--- a/vl.c
+++ b/vl.c
@@ -6090,12 +6090,10 @@  int main(int argc, char **argv, char **envp)
         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) {