ia64/xen-unstable

changeset 2238:c38644690324

bitkeeper revision 1.1159.1.61 (411de57crUA7TOOChvm_Z8Af1U17xw)

blank space
author gm281@boulderdash.cl.cam.ac.uk
date Sat Aug 14 10:12:12 2004 +0000 (2004-08-14)
parents 49739c6ac967
children 4f0616f9dffe
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Sat Aug 14 10:10:57 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Sat Aug 14 10:12:12 2004 +0000
     1.3 @@ -475,6 +475,8 @@ class XendDomainInfo:
     1.4          if not dominfo:
     1.5              return
     1.6          print 'check_name>', 'dom=', dominfo.name, dominfo.dom, 'self=', name, self.dom
     1.7 +        if dominfo.is_terminated():
     1.8 +            return
     1.9          if not self.dom or (dominfo.dom != self.dom):
    1.10              raise VmError('vm name clash: ' + name)
    1.11          
    1.12 @@ -490,7 +492,9 @@ class XendDomainInfo:
    1.13          try:
    1.14              self.name = sxp.child_value(config, 'name')
    1.15              self.check_name(self.name)
    1.16 -            self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
    1.17 +	    self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
    1.18 +            if self.restore and self.dom:
    1.19 +                xc.domain_setname(self.dom, self.name)
    1.20              self.memory = int(sxp.child_value(config, 'memory'))
    1.21              if self.memory is None:
    1.22                  raise VmError('missing memory size')
    1.23 @@ -630,6 +634,7 @@ class XendDomainInfo:
    1.24              if self.restart_pending():
    1.25                  self.console.deregisterChannel()
    1.26              else:
    1.27 +                log.debug('Closing console, domain %s', self.id)
    1.28                  self.console.close()
    1.29          chan = xend.getDomChannel(self.dom)
    1.30          if chan: