Skip to content

Commit b4d6205

Browse files
committed
boot-qemu.py: Implement '--smp'
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 358761b commit b4d6205

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

boot-qemu.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,13 @@ def parse_arguments():
251251
'--shell',
252252
action='store_true',
253253
help='Instead of immediately shutting down machine, spawn a shell.')
254+
parser.add_argument(
255+
'-s',
256+
'--smp',
257+
type=int,
258+
help=
259+
'Number of processors for virtual machine (default: only KVM machines will use multiple vCPUs.)',
260+
)
254261
parser.add_argument('-t',
255262
'--timeout',
256263
default='3m',
@@ -282,6 +289,9 @@ def parse_arguments():
282289
if args.no_kvm:
283290
runner.use_kvm = False
284291

292+
if args.smp:
293+
runner.smp = args.smp
294+
285295
runner.interactive = args.interactive
286296
runner.timeout = args.timeout
287297

0 commit comments

Comments
 (0)