[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] xend: fix domain_migrate



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1252309885 -3600
# Node ID 719b67c4cc21cbaf0238d675a9b9fd696db56abe
# Parent  cb935f1779afac09da207326a8a3d703c2082810
xend: fix domain_migrate

When the guest(pv-on-hvm guest that cannot suspend) reboot in
LiveMigration, the disconnecting of src-side is not transmitted to
dist-side. As a result, the error processing on the dist side is not
executed.

Signed-off-by: Tomonari Horikoshi <t.horikoshi@xxxxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   20157:b4b79f3e3118
xen-unstable date:        Fri Sep 04 08:34:45 2009 +0100
---
 tools/python/xen/xend/XendDomain.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r cb935f1779af -r 719b67c4cc21 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Thu Sep 03 10:08:35 2009 +0100
+++ b/tools/python/xen/xend/XendDomain.py       Mon Sep 07 08:51:25 2009 +0100
@@ -1352,7 +1352,7 @@ class XendDomain:
                 XendCheckpoint.save(p2cwrite, dominfo, True, live, dst,
                                     node=node)
             finally:
-                sock.shutdown()
+                sock.shutdown(2)
                 sock.close()
 
             os.close(p2cread)
@@ -1378,6 +1378,7 @@ class XendDomain:
                 XendCheckpoint.save(sock.fileno(), dominfo, True, live,
                                     dst, node=node)
             finally:
+                sock.shutdown(2)
                 sock.close()
 
     def domain_save(self, domid, dst, checkpoint=False):

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.