[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT eeb34af] Make sure to only vm_start() a failed mi
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT eeb34af] Make sure to only vm_start() a failed migration ifwe were running to begin |
Date: |
Fri, 10 Jul 2009 19:16:43 -0000 |
From: Anthony Liguori <address@hidden>
with.
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/migration.c b/migration.c
index 190b37e..e6c8b16 100644
--- a/migration.c
+++ b/migration.c
@@ -261,12 +261,16 @@ void migrate_fd_put_ready(void *opaque)
dprintf("iterate\n");
if (qemu_savevm_state_iterate(s->file) == 1) {
int state;
+ int old_vm_running = vm_running;
+
dprintf("done iterating\n");
vm_stop(0);
bdrv_flush_all();
if ((qemu_savevm_state_complete(s->file)) < 0) {
- vm_start();
+ if (old_vm_running) {
+ vm_start();
+ }
state = MIG_STATE_ERROR;
} else {
state = MIG_STATE_COMPLETED;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT eeb34af] Make sure to only vm_start() a failed migration ifwe were running to begin,
Anthony Liguori <=