mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
ea511d357e
commit
e8299fcc5b
1 file changed
+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:
|
||||
|
||||