]> git.proxmox.com Git - mirror_qemu.git/commit - hw/hppa/machine.c
machine: Refactor smp-related call chains to pass MachineState
authorLike Xu <like.xu@linux.intel.com>
Sat, 18 May 2019 20:54:20 +0000 (04:54 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:07:36 +0000 (17:07 -0300)
commita0628599fa72524a1f59bbaa7410e6825a8feb3f
tree217e3b8e376d07c8f4078b926face539eb8ba6c8
parentedeeec911702870adf8866311b5feb2bdaaee2ce
machine: Refactor smp-related call chains to pass MachineState

To get rid of the global smp_* variables we're currently using, it's recommended
to pass MachineState in the list of incoming parameters for functions that use
global smp variables, thus some redundant parameters are dropped. It's applied
for legacy smbios_*(), *_machine_reset(), hot_add_cpu() and mips *_create_cpu().

Suggested-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190518205428.90532-3-like.xu@linux.intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
14 files changed:
hw/arm/virt.c
hw/core/machine-qmp-cmds.c
hw/hppa/machine.c
hw/i386/acpi-build.c
hw/i386/pc.c
hw/mips/mips_malta.c
hw/ppc/pnv.c
hw/ppc/spapr.c
hw/s390x/s390-virtio-ccw.c
hw/smbios/smbios.c
include/hw/boards.h
include/hw/firmware/smbios.h
include/hw/i386/pc.h
vl.c