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

[Xen-changelog] [xen-3.2-testing] Fix showing of CPU Affinity by xm vcpu-list



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1211537112 -3600
# Node ID e03ac7ab7521543019a72aa47514e018d55232ae
# Parent  e75c00f319290898e4bc9fd70f611cf6f338c8e0
Fix showing of CPU Affinity by xm vcpu-list
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
xen-unstable changeset:   17654:8dce20be0bd5a4d3abaebb84b3c749e8d69bfb48
xen-unstable date:        Mon May 19 09:46:02 2008 +0100
---
 tools/python/xen/xm/main.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r e75c00f31929 -r e03ac7ab7521 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Fri May 23 11:04:46 2008 +0100
+++ b/tools/python/xen/xm/main.py       Fri May 23 11:05:12 2008 +0100
@@ -1082,7 +1082,7 @@ def xm_vcpu_list(args):
 
             # normalize cpumap by modulus nr_cpus, and drop duplicates
             cpumap = dict.fromkeys(
-                       map(lambda x: x % nr_cpus, cpumap)).keys()
+                       filter(lambda x: x < nr_cpus, cpumap)).keys()
             if len(cpumap) == nr_cpus:
                 return "any cpu"
 

_______________________________________________
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®.