]> git.proxmox.com Git - mirror_qemu.git/commit
general: Replace global smp variables with smp machine properties
authorLike Xu <like.xu@linux.intel.com>
Sat, 18 May 2019 20:54:21 +0000 (04:54 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:07:36 +0000 (17:07 -0300)
commit5cc8767d05708f590eea926a2f7a2c1a80021fa7
tree98da97b39d3ec270eea31f88f9bd367cb8eadd3c
parenta0628599fa72524a1f59bbaa7410e6825a8feb3f
general: Replace global smp variables with smp machine properties

Basically, the context could get the MachineState reference via call
chains or unrecommended qdev_get_machine() in !CONFIG_USER_ONLY mode.

A local variable of the same name would be introduced in the declaration
phase out of less effort OR replace it on the spot if it's only used
once in the context. No semantic changes.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190518205428.90532-4-like.xu@linux.intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
accel/kvm/kvm-all.c
backends/hostmem.c
cpus.c
exec.c
gdbstub.c
hw/core/numa.c
hw/cpu/core.c
migration/postcopy-ram.c
target/openrisc/sys_helper.c
tcg/tcg.c