mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
vl: convert -smp to qemu_opts_parse()
This also introduces a new suboption, "cpus=", which is the default. So after this patch, -smp n,sockets=y is the same as -smp cpus=n,sockets=y (with "cpu" being some generic thing, referring to either cores, or threads, or sockets, as before). We still don't validate relations between different numbers, for example it is still possible to say -smp 1,sockets=10 and it will be accepted to mean sockets=1. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Message-id: 1372072012-30305-1-git-send-email-mjt@msgid.tls.msk.ru Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8a27c6a067
commit
12b7f57e2c
2 changed files with 70 additions and 54 deletions
|
@ -73,7 +73,7 @@ Select CPU model (@code{-cpu help} for list and additional feature selection)
|
|||
ETEXI
|
||||
|
||||
DEF("smp", HAS_ARG, QEMU_OPTION_smp,
|
||||
"-smp n[,maxcpus=cpus][,cores=cores][,threads=threads][,sockets=sockets]\n"
|
||||
"-smp [cpus=]n[,maxcpus=cpus][,cores=cores][,threads=threads][,sockets=sockets]\n"
|
||||
" set the number of CPUs to 'n' [default=1]\n"
|
||||
" maxcpus= maximum number of total cpus, including\n"
|
||||
" offline CPUs for hotplug, etc\n"
|
||||
|
@ -82,7 +82,7 @@ DEF("smp", HAS_ARG, QEMU_OPTION_smp,
|
|||
" sockets= number of discrete sockets in the system\n",
|
||||
QEMU_ARCH_ALL)
|
||||
STEXI
|
||||
@item -smp @var{n}[,cores=@var{cores}][,threads=@var{threads}][,sockets=@var{sockets}][,maxcpus=@var{maxcpus}]
|
||||
@item -smp [cpus=]@var{n}[,cores=@var{cores}][,threads=@var{threads}][,sockets=@var{sockets}][,maxcpus=@var{maxcpus}]
|
||||
@findex -smp
|
||||
Simulate an SMP system with @var{n} CPUs. On the PC target, up to 255
|
||||
CPUs are supported. On Sparc32 target, Linux limits the number of usable CPUs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue