qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 00/10] refactor cpu topo into machine properties
@ 2019-05-06  8:33 Like Xu
  2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 01/10] hw/boards: add struct CpuTopology to MachineState Like Xu
                   ` (10 more replies)
  0 siblings, 11 replies; 23+ messages in thread
From: Like Xu @ 2019-05-06  8:33 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Eduardo Habkost, Michael S. Tsirkin,
	Philippe Mathieu-Daudé, Dr. David Alan Gilbert,
	Paolo Bonzini, Alistair Francis, Igor Mammedov, Alex Bennée,
	Richard Henderson

This patch series make existing cores/threads/sockets into machine
properties and get rid of global smp_* variables they use currently.

The purpose of getting rid of globals is disentangle layer violations and
let's do it one step at a time by replacing the smp_foo with qdev_get_machine()
as few calls as possible and delay other related refactoring efforts.

Like Xu (10):
  hw/boards: add struct CpuTopology to MachineState
  cpu/topology: related call chains refactoring to pass MachineState
  cpu/topology: replace global smp variables by MachineState in general path
  cpu/topology: add uncommon arch support for smp machine properties
  cpu/topology: add hw/ppc support for smp machine properties
  cpu/topology: add hw/riscv support for smp machine properties
  cpu/topology: add hw/s390x support for smp machine properties
  cpu/topology: add hw/i386 support for smp machine properties
  cpu/topology: add hw/arm support for smp machine properties
  cpu/topology: replace smp global variables with smp machine properties

 accel/kvm/kvm-all.c          |  4 ++--
 backends/hostmem.c           |  6 ++++--
 cpus.c                       |  6 ++++--
 exec.c                       |  3 ++-
 gdbstub.c                    |  4 ++++
 hw/alpha/dp264.c             |  1 +
 hw/arm/fsl-imx6.c            |  6 +++++-
 hw/arm/fsl-imx6ul.c          |  6 +++++-
 hw/arm/fsl-imx7.c            |  7 +++++--
 hw/arm/highbank.c            |  1 +
 hw/arm/mcimx6ul-evk.c        |  2 +-
 hw/arm/mcimx7d-sabre.c       |  2 +-
 hw/arm/raspi.c               |  4 ++--
 hw/arm/realview.c            |  1 +
 hw/arm/sabrelite.c           |  2 +-
 hw/arm/vexpress.c            | 16 ++++++++------
 hw/arm/virt.c                | 10 +++++++--
 hw/arm/xlnx-zynqmp.c         | 16 ++++++++------
 hw/cpu/core.c                |  4 +++-
 hw/hppa/machine.c            |  4 +++-
 hw/i386/acpi-build.c         | 13 +++++++-----
 hw/i386/kvmvapic.c           |  7 +++++--
 hw/i386/pc.c                 | 33 ++++++++++++++++-------------
 hw/i386/xen/xen-hvm.c        |  4 ++++
 hw/mips/boston.c             |  2 +-
 hw/mips/mips_malta.c         | 23 +++++++++++---------
 hw/openrisc/openrisc_sim.c   |  1 +
 hw/ppc/e500.c                |  3 +++
 hw/ppc/mac_newworld.c        |  3 ++-
 hw/ppc/mac_oldworld.c        |  3 ++-
 hw/ppc/pnv.c                 |  9 ++++----
 hw/ppc/prep.c                |  4 ++--
 hw/ppc/spapr.c               | 37 +++++++++++++++++++++++---------
 hw/ppc/spapr_rtas.c          |  4 +++-
 hw/riscv/sifive_e.c          |  6 ++++--
 hw/riscv/sifive_plic.c       |  3 +++
 hw/riscv/sifive_u.c          |  6 ++++--
 hw/riscv/spike.c             |  2 ++
 hw/riscv/virt.c              |  1 +
 hw/s390x/s390-virtio-ccw.c   |  9 ++++----
 hw/s390x/sclp.c              |  2 +-
 hw/smbios/smbios.c           | 26 +++++++++++++----------
 hw/sparc/sun4m.c             |  2 ++
 hw/sparc64/sun4u.c           |  4 ++--
 hw/xtensa/sim.c              |  2 +-
 hw/xtensa/xtfpga.c           |  1 +
 include/hw/boards.h          | 19 +++++++++++++++--
 include/hw/firmware/smbios.h |  5 +++--
 include/hw/i386/pc.h         |  2 +-
 migration/postcopy-ram.c     |  8 ++++++-
 numa.c                       |  1 +
 qmp.c                        |  2 +-
 target/arm/cpu.c             |  8 ++++++-
 target/i386/cpu.c            |  4 +++-
 target/openrisc/sys_helper.c |  6 +++++-
 target/s390x/cpu.c           |  3 +++
 target/s390x/excp_helper.c   |  5 +++++
 tcg/tcg.c                    | 13 +++++++++++-
 vl.c                         | 50 ++++++++++++++++++++++++--------------------
 59 files changed, 301 insertions(+), 140 deletions(-)

-- 
1.8.3.1



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2019-05-17  9:22 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-06  8:33 [Qemu-devel] [PATCH v2 00/10] refactor cpu topo into machine properties Like Xu
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 01/10] hw/boards: add struct CpuTopology to MachineState Like Xu
2019-05-09 16:32   ` Alistair Francis
2019-05-17  8:46   ` Igor Mammedov
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 02/10] cpu/topology: related call chains refactoring to pass MachineState Like Xu
2019-05-09 16:34   ` Alistair Francis
2019-05-17  9:00   ` Igor Mammedov
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 03/10] cpu/topology: replace global smp variables by MachineState in general path Like Xu
2019-05-09 16:36   ` Alistair Francis
2019-05-17  9:08   ` Igor Mammedov
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 04/10] cpu/topology: add uncommon arch support for smp machine properties Like Xu
2019-05-09 16:37   ` Alistair Francis
2019-05-17  9:17   ` Igor Mammedov
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 05/10] cpu/topology: add hw/ppc " Like Xu
2019-05-17  9:20   ` Igor Mammedov
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 06/10] cpu/topology: add hw/riscv " Like Xu
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 07/10] cpu/topology: add hw/s390x " Like Xu
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 08/10] cpu/topology: add hw/i386 " Like Xu
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 09/10] cpu/topology: add hw/arm " Like Xu
2019-05-09 16:46   ` Alistair Francis
2019-05-06  8:33 ` [Qemu-devel] [PATCH v2 10/10] cpu/topology: replace smp global variables with " Like Xu
2019-05-09 16:48   ` Alistair Francis
2019-05-10  0:55 ` [Qemu-devel] [PATCH v2 00/10] refactor cpu topo into " Like Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).