qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix brown-paper-bag bugs from live-migration patch
@ 2008-11-12 21:34 Charles Duffy
  2008-11-12 22:29 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Duffy @ 2008-11-12 21:34 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

In TCP migration, prevent an endless loop trying to retrieve error 
status. In exec migration, set the close pointer in the FdMigrationState 
structure.

Color me embarrassed.

Signed-off-by: Charles Duffy <charles_duffy@messageone.com>

[-- Attachment #2: migration-brown-paper-bag-fixes.patch --]
[-- Type: text/x-patch, Size: 716 bytes --]

diff --git a/migration-exec.c b/migration-exec.c
index 5d0b215..caeed4b 100644
--- a/migration-exec.c
+++ b/migration-exec.c
@@ -85,6 +85,7 @@ MigrationState *exec_start_outgoing_migration(const char *command,
 
     s->opaque = qemu_popen(f, "w");
 
+    s->close = exec_close;
     s->get_error = file_errno;
     s->write = file_write;
     s->mig_state.cancel = migrate_fd_cancel;
diff --git a/migration-tcp.c b/migration-tcp.c
index 100644b..6fc1943 100644
--- a/migration-tcp.c
+++ b/migration-tcp.c
@@ -32,7 +32,7 @@
 
 static int socket_errno(FdMigrationState *s)
 {
-    return (s->get_error(s));
+    return socket_error();
 }
 
 static int socket_write(FdMigrationState *s, const void * buf, size_t size)

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

end of thread, other threads:[~2008-11-12 22:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 21:34 [Qemu-devel] [PATCH] Fix brown-paper-bag bugs from live-migration patch Charles Duffy
2008-11-12 22:29 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).