ia64/xen-unstable

changeset 10176:b36697ed766c

[XEND] Remember cpu-pinning information across guest restarts.
Signed-off-by: Qing He <qing.he@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu May 25 14:45:40 2006 +0100 (2006-05-25)
parents 1a18ca9a4a0b
children 1449c0f57b9d
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu May 25 14:42:07 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu May 25 14:45:40 2006 +0100
     1.3 @@ -1546,6 +1546,10 @@ class XendDomainInfo:
     1.4          self.configure_bootloader()
     1.5          config = self.sxpr()
     1.6  
     1.7 +        if self.infoIsSet('cpus') and len(self.info['cpus']) != 0:
     1.8 +            config.append(['cpus', reduce(lambda x, y: str(x) + "," + str(y),
     1.9 +                                          self.info['cpus'])])
    1.10 +
    1.11          if self.readVm(RESTART_IN_PROGRESS):
    1.12              log.error('Xend failed during restart of domain %d.  '
    1.13                        'Refusing to restart to avoid loops.',