All of lore.kernel.org
 help / color / mirror / Atom feed
* fix cross migrate problem
@ 2009-09-04  5:01 James Song
  0 siblings, 0 replies; only message in thread
From: James Song @ 2009-09-04  5:01 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 925 bytes --]

When migrate Guest OS to remote host on each side of two host.  The later migration will be hung because of Read or Write socket in destionation can't been closed for wait a reponse from initiator. So close the side of socket in initiator when finish the  migration. 

Signed-off-by: Song Wei (james)
//fix_cross_migrate.patch 
diff -r b4fcb5f632dc tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Mon Aug 31 18:17:26 2009 +0100
+++ b/tools/python/xen/xend/XendDomain.py       Fri Sep 04 12:48:42 2009 +0800
@@ -1353,8 +1353,7 @@
                 XendCheckpoint.save(p2cwrite, dominfo, True, live, dst,
                                     node=node)
             finally:
-                sock.shutdown()
-                sock.close()
+                sock.shutdown(socket.SHUT_RDWR)

             os.close(p2cread)
             os.close(p2cwrite)


thanks,
James



[-- Attachment #1.2: Type: text/html, Size: 1948 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-04  5:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-04  5:01 fix cross migrate problem James Song

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.