Skip to content

RFC Rework SMP parameters

Andrew Jones qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest16 patches 57 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16vl: smp_parse: cleanupsvl.c+15 -191 reply
2/16vl: smp: add checks for maxcpus based topologiesvl.c+19 -02 replies
3/16hw/smbios/smbios: fix number of sockets calculationhw/smbios/smbios.c+1 -11 reply
4/16hw/core/machine: Introduce pre_inithw/core/machine.c include/hw/boards.h vl.c+8 -04 replies
5/16hw/core/machine: add smp properiteshw/core/machine.c include/hw/boards.h+87 -06 replies
6/16vl: move smp parsing to machine pre_inithw/core/machine.c vl.c+142 -8210 replies
7/16qom/cpu: make nr-cores, nr-threads real propertiesqom/cpu.c+8 -020 replies
8/16hw/core/machine: set cpu global nr_cores, nr_threads in pre_initcpus.c hw/core/machine.c+18 -20 replies
9/16hw/i386/pc: don't use smp_cores, smp_threadshw/i386/pc.c+15 -111 reply
10/16hw/ppc/spapr: don't use smp_cores, smp_threadshw/ppc/spapr.c hw/ppc/spapr_rtas.c+6 -54 replies
11/16target-ppc: don't use smp_threadstarget-ppc/translate_init.c+7 -80 replies
12/16hw/arm/virt: rename *.smp_cpus to *.cpushw/arm/virt-acpi-build.c hw/arm/virt.c include/hw/arm/virt-acpi-build.h+15 -150 replies
13/16hw/arm/virt: don't use smp_cpus, max_cpushw/arm/virt.c+9 -90 replies
14/16hw/arm/virt: stash cpu topo info in VirtGuestInfohw/arm/virt.c include/hw/arm/virt-acpi-build.h+9 -12 replies
15/16smbios: don't use smp_cores, smp_threadshw/arm/virt.c hw/i386/pc.c hw/smbios/smbios.c +1 more+39 -132 replies
16/16sysemu/cpus: bye, bye smp_cores, smp_threadshw/core/machine.c include/sysemu/cpus.h vl.c+0 -140 replies

Reviews trailers per patch

2 of 16 patches have a Reviewed-by or Acked-by.

PatchDavid GibsonIgor Mammedov
1/16R-b
2/16
3/16R-b
4/16
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-arm] [PATCH RFC 00/16] Rework SMP parameters

This series is a first step in eliminating smp_* global variables (the last patch gets rid of two of them!) And, it's a first step in deprecating '-smp' in favor of using machine properties, e.g.
qemu -machine pc,sockets=2,cores=2,threads=2,maxcpus=8,cpus=8 ...

It's also a first step in allowing machine types to override the default parameter parsing, which makes assumptions that not all machine types may agree with. (mach-virt is coming...)

So, three first steps, I guess that's 3 steps. And a forth thing it does is some fixes for the smp parsing and also for SMBIOS use of cpu topology.

Tested with kvm-unit-tests on all five arches supported there, x86_64 both with KVM and TCG, and booting an x86_64 guest (KVM) to check SMBIOS before and after in order to make sure it was the same. Also compile tested all targets.

Thanks,
drew

Andrew Jones (15):
vl: smp_parse: cleanups
vl: smp: add checks for maxcpus based topologies hw/smbios/smbios: fix number of sockets calculation hw/core/machine: add smp properites
vl: move smp parsing to machine pre_init
qom/cpu: make nr-cores,nr-threads real properties hw/core/machine: set cpu global nr_cores,nr_threads in pre_init hw/i386/pc: don't use smp_cores,smp_threads hw/ppc/spapr: don't use smp_cores,smp_threads
target-ppc: don't use smp_threads
hw/arm/virt: rename *.smp_cpus to *.cpus
hw/arm/virt: don't use smp_cpus,max_cpus
hw/arm/virt: stash cpu topo info in VirtGuestInfo
smbios: don't use smp_cores,smp_threads
sysemu/cpus: bye, bye smp_cores,smp_threads

Igor Mammedov (1):
hw/core/machine: Introduce pre_init

 cpus.c                           |   2 -
 hw/arm/virt-acpi-build.c         |  14 +--
 hw/arm/virt.c                    |  41 +++++---
 hw/core/machine.c                | 210 +++++++++++++++++++++++++++++++++++++++
 hw/i386/pc.c                     |  39 +++++---
 hw/ppc/spapr.c                   |   9 +-
 hw/ppc/spapr_rtas.c              |   2 +-
 hw/smbios/smbios.c               |  20 ++--
 include/hw/arm/virt-acpi-build.h |   6 +-
 include/hw/boards.h              |   7 ++
 include/hw/smbios/smbios.h       |  10 ++
 include/sysemu/cpus.h            |  10 --
 qom/cpu.c                        |   8 ++
 target-ppc/translate_init.c      |  15 ++-
 vl.c                             | 101 +++++++------------
 15 files changed, 356 insertions(+), 138 deletions(-)
Signature · 1 line
2.4.11