diff mbox

[1/5] loadvm already call vm_start()

Message ID e6cfffa7f959138f76c3e4bfce92910ffab0b002.1250601335.git.quintela@redhat.com
State Superseded
Headers show

Commit Message

Juan Quintela Aug. 18, 2009, 1:34 p.m. UTC
If there are any error.  do_loadvm() will not call vm_start() and we would call it on the next line

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 vl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/vl.c b/vl.c
index 8b2b289..eb04d1c 100644
--- a/vl.c
+++ b/vl.c
@@ -6036,8 +6036,10 @@  int main(int argc, char **argv, char **envp)
         exit(1);
     }

-    if (loadvm)
+    if (loadvm) {
+        autostart = 0;
         do_loadvm(cur_mon, loadvm);
+    }

     if (incoming) {
         autostart = 0;