Skip to contentSkip to conversation

xend: fix domain_migrate

PATCH New Tomonari Horikoshi 1 participant 1 message Mar 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xend: fix domain_migrate

Hi

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.

This patch corrects this.

Best regards,
Horikoshi

tools/python/xen/xend/XendDomain.py +1 -0
diff -r 0477f9061c8a tools/python/xen/xend/XendDomain.py
@@ -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):

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel