[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Fix xm vcpu-pin for Domain-0



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1215596300 -3600
# Node ID 823caffa7ddf750d6f83dba3733c4f89f0510d84
# Parent  3f23e01d31985899dbd1660b166f229f1ee74292
Fix xm vcpu-pin for Domain-0

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r 3f23e01d3198 -r 823caffa7ddf tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Jul 09 10:37:20 2008 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Jul 09 10:38:20 2008 +0100
@@ -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.

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.