Fix xm vcpu-pin command
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.
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/python/xen/xm/main.py +2 -2
@@ -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