ia64/xen-unstable

changeset 15332:e1c54c14220a

Fix xm vcpu-pin command for keyword 'all'.

The keyword 'all' was supported as the 2nd argument of xm vcpu-pin
command since changeset 11619. However, we cannot use the keyword
'all' since changeset 14481.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Tue Jun 12 11:29:27 2007 +0100 (2007-06-12)
parents feeca16435bf
children 634b7f7f8584
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Tue Jun 12 11:26:51 2007 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Tue Jun 12 11:29:27 2007 +0100
     1.3 @@ -140,7 +140,7 @@ SUBCOMMAND_HELP = {
     1.4                       'Send a trigger to a domain.'),
     1.5      'vcpu-list'   : ('[<Domain>]',
     1.6                       'List the VCPUs for a domain or all domains.'),
     1.7 -    'vcpu-pin'    : ('<Domain> <VCPU> <CPUs|all>',
     1.8 +    'vcpu-pin'    : ('<Domain> <VCPU|all> <CPUs|all>',
     1.9                       'Set which CPUs a VCPU can use.'),
    1.10      'vcpu-set'    : ('<Domain> <vCPUs>',
    1.11                       'Set the number of active VCPUs for allowed for the'
    1.12 @@ -1330,7 +1330,7 @@ def xm_vcpu_pin(args):
    1.13          return cpus
    1.14  
    1.15      dom  = args[0]
    1.16 -    vcpu = int(args[1])
    1.17 +    vcpu = args[1]
    1.18      if args[2] == 'all':
    1.19          cpumap = cpu_make_map('0-63')
    1.20      else: