mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
6a9d89d758
commit
f58df8b759
1 file changed
+1
-1
@@ -555,7 +555,7 @@ class XendDomainInfo:
|
||||
if self.memory is None:
|
||||
raise VmError('missing memory size')
|
||||
cpu = sxp.child_value(config, 'cpu')
|
||||
if self.recreate and self.dom and cpu is not None and cpu > 0:
|
||||
if self.recreate and self.dom and cpu is not None and cpu >= 0:
|
||||
xc.domain_pincpu(self.dom, 0, 1<<int(cpu))
|
||||
try:
|
||||
image = sxp.child_value(self.config, 'image')
|
||||
|
||||