ia64/xen-unstable

changeset 5232:e56f6322b1a0

bitkeeper revision 1.1612 (429c6dd5DZf10_GWDT3DTiTom7Mb1g)

XendDomainInfo.py:
cpu == 0 is the 1st cpu, allow pinning a domain to it.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue May 31 13:59:49 2005 +0000 (2005-05-31)
parents 53886c4fcc35
children c14443dad5a0
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue May 31 13:36:19 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue May 31 13:59:49 2005 +0000
     1.3 @@ -555,7 +555,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.recreate and self.dom and cpu is not None and cpu > 0:
     1.8 +        if self.recreate and self.dom and cpu is not None and cpu >= 0:
     1.9              xc.domain_pincpu(self.dom, 0, 1<<int(cpu))
    1.10          try:
    1.11              image = sxp.child_value(self.config, 'image')