diff -r bd97e45e073a tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Tue Jul 08 09:28:50 2008 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Wed Jul 09 15:12:18 2008 +0900 @@ -1129,6 +1129,12 @@ class XendDomainInfo: else: self.info[arg] = val + # read CPU Affinity + self.info['cpus'] = [] + vcpus_info = self.getVCPUInfo() + for vcpu_info in sxp.children(vcpus_info, 'vcpu'): + self.info['cpus'].append(sxp.child_value(vcpu_info, 'cpumap')) + # For dom0, we ignore any stored value for the vcpus fields, and # read the current value from Xen instead. This allows boot-time # settings to take precedence over any entries in the store.