Fix xm vcpu-pin for Domain-0
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Jul 2008 09:38:20 +0000 (10:38 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Jul 2008 09:38:20 +0000 (10:38 +0100)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
tools/python/xen/xend/XendDomainInfo.py

index a128f302f8341e70bdf9c2f643c71f1af51ba38f..422d72807842511b396e050b9ec2a827a4ded0c3 100644 (file)
@@ -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.