From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBQQE-0006HS-7G for qemu-devel@nongnu.org; Fri, 10 Jun 2016 13:40:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBQQC-0000Lg-5H for qemu-devel@nongnu.org; Fri, 10 Jun 2016 13:40:41 -0400 From: Andrew Jones Date: Fri, 10 Jun 2016 19:40:11 +0200 Message-Id: <1465580427-13596-1-git-send-email-drjones@redhat.com> Subject: [Qemu-devel] [PATCH RFC 00/16] Rework SMP parameters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, qemu-arm@nongnu.org Cc: imammedo@redhat.com, ehabkost@redhat.com, pbonzini@redhat.com, peter.maydell@linaro.org, david@gibson.dropbear.id.au, dgibson@redhat.com, agraf@suse.de 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(-) -- 2.4.11