All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Migration Fixes
@ 2009-03-31 16:51 Glauber Costa
  2009-03-31 16:51 ` [Qemu-devel] [PATCH 1/3] stop dirty tracking just at the end of migration Glauber Costa
  0 siblings, 1 reply; 11+ messages in thread
From: Glauber Costa @ 2009-03-31 16:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, avi

This is a refactored version of a bunch of migration fixes sent last week
by Yaniv Kamay to kvm@vger. Turns out that most of the changes are not kvm-specific,
and can be applied to qemu as well. So here they are, with a little refactor,
and a bit of lemon.

Serve yourself.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Qemu-devel] [PATCH 3/3] propagate error on failed completion
@ 2009-03-31 17:43 Glauber Costa
  0 siblings, 0 replies; 11+ messages in thread
From: Glauber Costa @ 2009-03-31 17:43 UTC (permalink / raw)
  To: qemu-devel; +Cc: Yaniv Kamay, aliguori, Dor Laor, avi

migrate_fd_put_ready() calls qemu_savevm_state_complete(),
but the later can fail.

If it happens, re-start the vm and propagate the error up

Based on a patch by Yaniv Kamay

Signed-off-by: Glauber Costa <glommer@redhat.com>
CC: Yaniv Kamay <ykamay@redhat.com>
CC: Dor Laor <dlaor@redhat.com>
---
 migration.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/migration.c b/migration.c
index b3904b2..d77ebbd 100644
--- a/migration.c
+++ b/migration.c
@@ -224,7 +224,11 @@ void migrate_fd_put_ready(void *opaque)
         vm_stop(0);
 
         bdrv_flush_all();
-        qemu_savevm_state_complete(s->file);
+        if ((qemu_savevm_state_complete(s->file)) < 0) {
+            vm_start();
+            s->state = MIG_STATE_ERROR;
+            return;
+        }
         s->state = MIG_STATE_COMPLETED;
         migrate_fd_cleanup(s);
     }
-- 
1.5.6.6

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-03-31 19:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-31 16:51 [Qemu-devel] [PATCH 0/3] Migration Fixes Glauber Costa
2009-03-31 16:51 ` [Qemu-devel] [PATCH 1/3] stop dirty tracking just at the end of migration Glauber Costa
2009-03-31 16:51   ` [Qemu-devel] [PATCH 2/3] create qemu_file_set_error Glauber Costa
2009-03-31 16:51     ` [Qemu-devel] [PATCH 3/3] propagate error on failed completion Glauber Costa
2009-03-31 17:05       ` Edgar E. Iglesias
2009-03-31 17:06       ` Blue Swirl
2009-03-31 17:15         ` Glauber Costa
2009-03-31 19:04   ` [Qemu-devel] Re: [PATCH 1/3] stop dirty tracking just at the end of migration Yaniv Kamay
2009-03-31 19:45     ` Glauber Costa
2009-03-31 19:55       ` Yaniv Kamay
  -- strict thread matches above, loose matches on Subject: below --
2009-03-31 17:43 [Qemu-devel] [PATCH 3/3] propagate error on failed completion Glauber Costa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.