mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.1159.90.2 (415be9d5hTw1zLV9fA-AYcekmwhMwg)
Discard devices early for local migrate.
This commit is contained in:
1 parent
1acfc9cfbc
commit
513a304d7e
1 file changed
+5
@@ -295,6 +295,11 @@ class XendMigrateInfo(XfrdInfo):
|
||||
eserver.inject('xend.domain.migrate',
|
||||
[ self.dominfo.name, self.dominfo.id,
|
||||
"begin", self.sxpr() ])
|
||||
# Special case for localhost: destroy all devices early.
|
||||
if 0 and self.dst_host in ["localhost", "127.0.0.1"]:
|
||||
self.dominfo.restart_cancel()
|
||||
self.dominfo.cleanup()
|
||||
#self.dominfo.destroy_console()
|
||||
xfrd.request(['xfr.migrate',
|
||||
self.src_dom,
|
||||
vmconfig,
|
||||
|
||||