ia64/xen-unstable

changeset 18001:823caffa7ddf

Fix xm vcpu-pin for Domain-0

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 09 10:38:20 2008 +0100 (2008-07-09)
parents 3f23e01d3198
children 92992f188053
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Jul 09 10:37:20 2008 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Jul 09 10:38:20 2008 +0100
     1.3 @@ -1129,6 +1129,12 @@ class XendDomainInfo:
     1.4                  else:
     1.5                      self.info[arg] = val
     1.6  
     1.7 +        # read CPU Affinity
     1.8 +        self.info['cpus'] = []
     1.9 +        vcpus_info = self.getVCPUInfo()
    1.10 +        for vcpu_info in sxp.children(vcpus_info, 'vcpu'):
    1.11 +            self.info['cpus'].append(sxp.child_value(vcpu_info, 'cpumap'))
    1.12 +
    1.13          # For dom0, we ignore any stored value for the vcpus fields, and
    1.14          # read the current value from Xen instead.  This allows boot-time
    1.15          # settings to take precedence over any entries in the store.