WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix xm vcpu-pin for Domain-0
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 09 Jul 2008 09:30:09 -0700
Delivery-date: Wed, 09 Jul 2008 09:30:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix xm vcpu-pin for Domain-0, Xen patchbot-unstable <=