RFC Rework SMP parameters
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest16 patches 57 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | vl: smp_parse: cleanupsvl.c | +15 | 1 reply | |
| 2/16 | vl: smp: add checks for maxcpus based topologiesvl.c | +19 | 2 replies | |
| 3/16 | hw/smbios/smbios: fix number of sockets calculationhw/ | +1 | 1 reply | |
| 4/16 | hw/core/machine: Introduce pre_inithw/ include/ vl.c | +8 | 4 replies | |
| 5/16 | hw/core/machine: add smp properiteshw/ include/ | +87 | 6 replies | |
| 6/16 | vl: move smp parsing to machine pre_inithw/ vl.c | +142 | 10 replies | |
| 7/16 | qom/cpu: make nr-cores, nr-threads real propertiesqom/ | +8 | 20 replies | |
| 8/16 | hw/core/machine: set cpu global nr_cores, nr_threads in pre_initcpus.c hw/ | +18 | 0 replies | |
| 9/16 | hw/i386/pc: don't use smp_cores, smp_threadshw/ | +15 | 1 reply | |
| 10/16 | hw/ppc/spapr: don't use smp_cores, smp_threadshw/ hw/ | +6 | 4 replies | |
| 11/16 | target-ppc: don't use smp_threadstarget-ppc/ | +7 | 0 replies | |
| 12/16 | hw/arm/virt: rename *.smp_cpus to *.cpushw/ hw/ include/ | +15 | 0 replies | |
| 13/16 | hw/arm/virt: don't use smp_cpus, max_cpushw/ | +9 | 0 replies | |
| 14/16 | hw/arm/virt: stash cpu topo info in VirtGuestInfohw/ include/ | +9 | 2 replies | |
| 15/16 | smbios: don't use smp_cores, smp_threadshw/ hw/ hw/ +1 more | +39 | 2 replies | |
| 16/16 | sysemu/cpus: bye, bye smp_cores, smp_threadshw/ include/ vl.c | +0 | 0 replies |
Reviews trailers per patch
2 of 16 patches have a Reviewed-by or Acked-by.
| Patch | David Gibson | Igor Mammedov |
|---|---|---|
| 1/16 | R-b | |
| 2/16 | ||
| 3/16 | R-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.
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