Skip to contentSkip to conversation

Fix xm vcpu-pin command

PATCH New Masaki Kanno 1 participant 1 message Jun 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix xm vcpu-pin command

Hi,

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.

To be able to use the keyword 'all' again, this patch fixes it.

Best regards,
Kan

tools/python/xen/xm/main.py +2 -2
diff -r 93f77a5a8437 tools/python/xen/xm/main.py
@@ -140,7 +140,7 @@ SUBCOMMAND_HELP = {
                      'Send a trigger to a domain.'),
     'vcpu-list'   : ('[<Domain>]',
                      'List the VCPUs for a domain or all domains.'),
-    'vcpu-pin'    : ('<Domain> <VCPU> <CPUs|all>',
+    'vcpu-pin'    : ('<Domain> <VCPU|all> <CPUs|all>',
                      'Set which CPUs a VCPU can use.'),
     'vcpu-set'    : ('<Domain> <vCPUs>',
                      'Set the number of active VCPUs for allowed for the'
@@ -1330,7 +1330,7 @@ def xm_vcpu_pin(args):
         return cpus
 
     dom  = args[0]
-    vcpu = int(args[1])
+    vcpu = args[1]
     if args[2] == 'all':
         cpumap = cpu_make_map('0-63')
     else:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel