ia64/xen-unstable

changeset 17675:8dce20be0bd5

Fix showing of CPU Affinity by xm vcpu-list
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon May 19 09:46:02 2008 +0100 (2008-05-19)
parents e66aefdfedcc
children 2ada81810ddb
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Mon May 19 09:43:42 2008 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Mon May 19 09:46:02 2008 +0100
     1.3 @@ -1096,7 +1096,7 @@ def xm_vcpu_list(args):
     1.4  
     1.5              # normalize cpumap by modulus nr_cpus, and drop duplicates
     1.6              cpumap = dict.fromkeys(
     1.7 -                       map(lambda x: x % nr_cpus, cpumap)).keys()
     1.8 +                       filter(lambda x: x < nr_cpus, cpumap)).keys()
     1.9              if len(cpumap) == nr_cpus:
    1.10                  return "any cpu"
    1.11