mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1159.96.4 (415c287dKBbK9HPtAge67WfTsJsnwQ)
Delay configuring the new domain during migration to localhost.
This commit is contained in:
1 parent
d61b7f7baa
commit
28b770962c
3 files changed
+25
-13
No files matched your search
@@ -302,18 +302,18 @@ class XendMigrateInfo(XfrdInfo):
|
||||
self.dst_port,
|
||||
self.live ])
|
||||
|
||||
def xfr_vm_suspend(self, xfrd, val):
|
||||
def cbok(val):
|
||||
# Special case for localhost: destroy devices early.
|
||||
if self.dst_host in ["localhost", "127.0.0.1"]:
|
||||
self.dominfo.restart_cancel()
|
||||
self.dominfo.cleanup()
|
||||
self.dominfo.destroy_console()
|
||||
return val
|
||||
## def xfr_vm_suspend(self, xfrd, val):
|
||||
## def cbok(val):
|
||||
## # Special case for localhost: destroy devices early.
|
||||
## if self.dst_host in ["localhost", "127.0.0.1"]:
|
||||
## self.dominfo.restart_cancel()
|
||||
## self.dominfo.cleanup()
|
||||
## self.dominfo.destroy_console()
|
||||
## return val
|
||||
|
||||
d = XfrdInfo.xfr_vm_suspend(self, xfrd, val)
|
||||
d.addCallback(cbok)
|
||||
return d
|
||||
## d = XfrdInfo.xfr_vm_suspend(self, xfrd, val)
|
||||
## d.addCallback(cbok)
|
||||
## return d
|
||||
|
||||
def xfr_migrate_ok(self, xfrd, val):
|
||||
dom = int(sxp.child0(val))
|
||||
|
||||