WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] fix cross migrate problem

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] fix cross migrate problem
From: "James Song" <jsong@xxxxxxxxxx>
Date: Thu, 03 Sep 2009 23:01:22 -0600
Delivery-date: Thu, 03 Sep 2009 22:03:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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)<jsong@xxxxxxxxxx>
//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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] fix cross migrate problem, James Song <=