Patchwork [02/16] migration: unix migration should obey autostart are the other ones

login
register
mail settings
Submitter Juan Quintela
Date March 11, 2010, 4:55 p.m.
Message ID <df010a71b58fcd4ae080fed1652daef2a74b1ec2.1268326362.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/47344/
State New
Headers show

Comments

Juan Quintela - March 11, 2010, 4:55 p.m.
This was the only incoming migration without autostart check

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration-unix.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/migration-unix.c b/migration-unix.c
index ce59a2a..49de1b9 100644
--- a/migration-unix.c
+++ b/migration-unix.c
@@ -176,6 +176,8 @@  static void unix_accept_incoming_migration(void *opaque)
     qemu_announce_self();
     DPRINTF("successfully loaded vm state\n");

+    if (autostart)
+        vm_start();

 out_fopen:
     qemu_fclose(f);