ia64/xen-unstable

changeset 2722:c8a3588babd5

bitkeeper revision 1.1159.1.264 (417963deTKJzOFoPmj0ZA8TSc7OtRQ)

Fix domain restart.
author cl349@freefall.cl.cam.ac.uk
date Fri Oct 22 19:47:42 2004 +0000 (2004-10-22)
parents 057ea964561d
children 76c5af12d4aa
files tools/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/server/controller.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Oct 22 17:44:56 2004 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Oct 22 19:47:42 2004 +0000
     1.3 @@ -444,7 +444,7 @@ class XendDomainInfo:
     1.4              if self.memory is None:
     1.5                  raise VmError('missing memory size')
     1.6              cpu = sxp.child_value(config, 'cpu')
     1.7 -            if self.dom and cpu is not None:
     1.8 +            if self.recreate and self.dom and cpu is not None:
     1.9                  xc.domain_pincpu(self.dom, int(cpu))
    1.10  
    1.11              self.init_domain()
     2.1 --- a/tools/python/xen/xend/server/controller.py	Fri Oct 22 17:44:56 2004 +0000
     2.2 +++ b/tools/python/xen/xend/server/controller.py	Fri Oct 22 19:47:42 2004 +0000
     2.3 @@ -68,7 +68,7 @@ class CtrlMsgRcvr:
     2.4      @type responders: {int:Responder}
     2.5      """
     2.6  
     2.7 -    def __init__(self, remote_port = 0):
     2.8 +    def __init__(self, remote_port=0):
     2.9          self.channelFactory = channel.channelFactory()
    2.10          self.majorTypes = {}
    2.11          self.dom = None