mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Fix showing of CPU Affinity by xm vcpu-list
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
e70a0fa88c
commit
a7b0dfd0b3
1 file changed
+1
-1
@@ -1096,7 +1096,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"
|
||||
|
||||
|
||||