]> xenbits.xensource.com Git - xen.git/commitdiff
xend: fix domain_migrate
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:13:56 +0000 (11:13 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 10:13:56 +0000 (11:13 +0100)
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@jp.fujitsu.com>
tools/python/xen/xend/XendDomain.py

index b624f786ad160c2cc35b5ebbd66b3cf561ddf390..6cde465559447c07f97f3d2ef6d0e2e04622fb64 100644 (file)
@@ -1378,6 +1378,7 @@ class XendDomain:
                 XendCheckpoint.save(sock.fileno(), dominfo, True, live,
                                     dst, node=node)
             finally:
+                sock.shutdown(socket.SHUT_RDWR)
                 sock.close()
 
     def domain_save(self, domid, dst, checkpoint=False):