ia64/xen-unstable

changeset 2570:30a9b33481dc

bitkeeper revision 1.1159.90.2 (415be9d5hTw1zLV9fA-AYcekmwhMwg)

Discard devices early for local migrate.
author mjw@wray-m-3.hpl.hp.com
date Thu Sep 30 11:11:17 2004 +0000 (2004-09-30)
parents a05a0524e3c5
children 3af1c3b54760
files tools/python/xen/xend/XendMigrate.py
line diff
     1.1 --- a/tools/python/xen/xend/XendMigrate.py	Fri Sep 24 16:36:33 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendMigrate.py	Thu Sep 30 11:11:17 2004 +0000
     1.3 @@ -295,6 +295,11 @@ class XendMigrateInfo(XfrdInfo):
     1.4          eserver.inject('xend.domain.migrate',
     1.5                         [ self.dominfo.name, self.dominfo.id,
     1.6                           "begin", self.sxpr() ])
     1.7 +        # Special case for localhost: destroy all devices early.
     1.8 +        if 0 and self.dst_host in ["localhost", "127.0.0.1"]:
     1.9 +            self.dominfo.restart_cancel()
    1.10 +            self.dominfo.cleanup()
    1.11 +            #self.dominfo.destroy_console()
    1.12          xfrd.request(['xfr.migrate',
    1.13                        self.src_dom,
    1.14                        vmconfig,