From: Eduardo Habkost <ehabkost@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Evgeny Voevodin" <e.voevodin@samsung.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
"Blue Swirl" <blauwirbel@gmail.com>,
"Max Filippov" <jcmvbkbc@gmail.com>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
"Guan Xuetao" <gxt@mprc.pku.edu.cn>,
"Rob Herring" <robh@kernel.org>, "Jia Liu" <proljc@gmail.com>,
"Alexander Graf" <agraf@suse.de>,
"Andreas Färber" <andreas.faerber@web.de>,
"Hervé Poussineau" <hpoussin@reactos.org>,
"Antony Pavlov" <antonynpavlov@gmail.com>,
"Maksim Kozlov" <m.kozlov@samsung.com>,
"Leon Alrae" <leon.alrae@imgtec.com>,
"Marcel Apfelbaum" <marcel.a@redhat.com>,
"Li Guang" <lig.fnst@cn.fujitsu.com>,
"Fabien Chouteau" <chouteau@adacore.com>,
"Peter Chubb" <peter.chubb@nicta.com.au>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Scott Wood" <scottwood@freescale.com>,
"Richard Henderson" <rth@twiddle.net>,
"Peter Crosthwaite" <peter.crosthwaite@xilinx.com>,
"Igor Mitsyanko" <i.mitsyanko@gmail.com>,
"Michael Walle" <michael@walle.cc>,
qemu-ppc@nongnu.org, "Dmitry Solodkiy" <d.solodkiy@samsung.com>,
"Bastian Koppelmann" <kbastian@mail.uni-paderborn.de>,
"Jan Kiszka" <jan.kiszka@web.de>,
"Aurelien Jarno" <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH 0/7] machine registration: Use QOM, eliminate QEMUMachine
Date: Tue, 18 Aug 2015 12:08:47 -0700 [thread overview]
Message-ID: <1439924934-30491-1-git-send-email-ehabkost@redhat.com> (raw)
This converts all code using QEMUMachine to register a QOM class directly,
using a new macro: DEFINE_MACHINE.
Python script used to convert all machines automatically can be seen at:
https://gist.github.com/ehabkost/582fe4969205975febb2#file-qemumachine-eliminate-py
Cc: Richard Henderson <rth@twiddle.net>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Li Guang <lig.fnst@cn.fujitsu.com>
Cc: Antony Pavlov <antonynpavlov@gmail.com>
Cc: Evgeny Voevodin <e.voevodin@samsung.com>
Cc: Maksim Kozlov <m.kozlov@samsung.com>
Cc: Igor Mitsyanko <i.mitsyanko@gmail.com>
Cc: Dmitry Solodkiy <d.solodkiy@samsung.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Peter Chubb <peter.chubb@nicta.com.au>
Cc: Jan Kiszka <jan.kiszka@web.de>
Cc: Andrzej Zaborowski <balrogg@gmail.com>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Cc: Michael Walle <michael@walle.cc>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Cc: "Hervé Poussineau" <hpoussin@reactos.org>
Cc: Jia Liu <proljc@gmail.com>
Cc: Alexander Graf <agraf@suse.de>
Cc: Scott Wood <scottwood@freescale.com>
Cc: "Andreas Färber" <andreas.faerber@web.de>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Fabien Chouteau <chouteau@adacore.com>
Cc: Blue Swirl <blauwirbel@gmail.com>
Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org
Eduardo Habkost (7):
exynos4: Use EXYNOS4210_NCPUS instead of max_cpus on error message
exynos4: Use MachineClass instead of exynos4_machines array
exynos4: Declare each QEMUMachine as a separate variable
machine: DEFINE_MACHINE macro
pc: Use DEFINE_MACHINE to implement DEFINE_PC_MACHINE
[RFC] Use DEFINE_MACHINE to register all machines
machine: Eliminate QEMUMachine and qemu_register_machine()
hw/acpi/piix4.c | 2 +-
hw/alpha/dp264.c | 18 ++--
hw/arm/collie.c | 14 +--
hw/arm/cubieboard.c | 16 ++-
hw/arm/digic_boards.c | 14 +--
hw/arm/exynos4_boards.c | 39 ++++---
hw/arm/gumstix.c | 29 +++---
hw/arm/highbank.c | 33 +++---
hw/arm/integratorcp.c | 14 +--
hw/arm/kzm.c | 14 +--
hw/arm/mainstone.c | 14 +--
hw/arm/musicpal.c | 14 +--
hw/arm/netduino2.c | 14 +--
hw/arm/nseries.c | 29 +++---
hw/arm/omap_sx1.c | 25 ++---
hw/arm/palm.c | 14 +--
hw/arm/realview.c | 61 ++++++-----
hw/arm/spitz.c | 51 +++++-----
hw/arm/stellaris.c | 25 ++---
hw/arm/tosa.c | 14 +--
hw/arm/versatilepb.c | 29 +++---
hw/arm/xilinx_zynq.c | 20 ++--
hw/arm/xlnx-ep108.c | 14 +--
hw/arm/z2.c | 14 +--
hw/core/null-machine.c | 16 ++-
hw/cris/axis_dev88.c | 16 ++-
hw/lm32/lm32_boards.c | 33 +++---
hw/lm32/milkymist.c | 16 ++-
hw/m68k/an5206.c | 14 +--
hw/m68k/dummy_m68k.c | 14 +--
hw/m68k/mcf5208.c | 16 ++-
hw/microblaze/petalogix_ml605_mmu.c | 16 ++-
hw/microblaze/petalogix_s3adsp1800_mmu.c | 16 ++-
hw/mips/mips_fulong2e.c | 14 +--
hw/mips/mips_jazz.c | 29 +++---
hw/mips/mips_malta.c | 24 ++---
hw/mips/mips_mipssim.c | 14 +--
hw/mips/mips_r4k.c | 14 +--
hw/moxie/moxiesim.c | 16 ++-
hw/openrisc/openrisc_sim.c | 18 ++--
hw/ppc/e500plat.c | 18 ++--
hw/ppc/mac_oldworld.c | 24 ++---
hw/ppc/mpc8544ds.c | 16 ++-
hw/ppc/ppc405_boards.c | 27 +++--
hw/ppc/ppc440_bamboo.c | 14 +--
hw/ppc/prep.c | 18 ++--
hw/ppc/virtex_ml507.c | 14 +--
hw/sh4/r2d.c | 14 +--
hw/sh4/shix.c | 16 ++-
hw/sparc/leon3.c | 14 +--
hw/sparc/sun4m.c | 170 ++++++++++++++++---------------
hw/sparc64/sun4u.c | 76 +++++++-------
hw/tricore/tricore_testboard.c | 16 ++-
hw/unicore32/puv3.c | 16 ++-
hw/xenpv/xen_machine_pv.c | 18 ++--
hw/xtensa/sim.c | 18 ++--
hw/xtensa/xtfpga.c | 59 ++++++-----
include/hw/boards.h | 45 ++++----
include/hw/i386/pc.h | 15 +--
include/qemu/typedefs.h | 1 -
include/sysemu/blockdev.h | 2 +-
include/sysemu/sysemu.h | 2 +-
vl.c | 37 -------
63 files changed, 606 insertions(+), 861 deletions(-)
--
2.1.0
next reply other threads:[~2015-08-18 19:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 19:08 Eduardo Habkost [this message]
2015-08-18 19:08 ` [Qemu-devel] [PATCH 1/7] exynos4: Use EXYNOS4210_NCPUS instead of max_cpus on error message Eduardo Habkost
2015-08-18 19:08 ` [Qemu-devel] [PATCH 2/7] exynos4: Use MachineClass instead of exynos4_machines array Eduardo Habkost
2015-08-18 19:08 ` [Qemu-devel] [PATCH 3/7] exynos4: Declare each QEMUMachine as a separate variable Eduardo Habkost
2015-08-18 19:08 ` [Qemu-devel] [PATCH 4/7] machine: DEFINE_MACHINE macro Eduardo Habkost
2015-08-20 21:14 ` Eduardo Habkost
2015-08-18 19:08 ` [Qemu-devel] [PATCH 5/7] pc: Use DEFINE_MACHINE to implement DEFINE_PC_MACHINE Eduardo Habkost
2015-08-19 23:28 ` Eduardo Habkost
2015-08-18 19:08 ` [Qemu-devel] [PATCH 6/7] [RFC] Use DEFINE_MACHINE to register all machines Eduardo Habkost
2015-08-18 19:54 ` Eduardo Habkost
2015-08-18 20:06 ` Eduardo Habkost
2015-08-18 21:43 ` [Qemu-devel] [PATCH v2 " Eduardo Habkost
2015-08-19 8:25 ` Michael Walle
2015-08-21 22:43 ` Eduardo Habkost
2015-08-18 19:08 ` [Qemu-devel] [PATCH 7/7] machine: Eliminate QEMUMachine and qemu_register_machine() Eduardo Habkost
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439924934-30491-1-git-send-email-ehabkost@redhat.com \
--to=ehabkost@redhat.com \
--cc=agraf@suse.de \
--cc=andreas.faerber@web.de \
--cc=antonynpavlov@gmail.com \
--cc=aurelien@aurel32.net \
--cc=blauwirbel@gmail.com \
--cc=chouteau@adacore.com \
--cc=d.solodkiy@samsung.com \
--cc=e.voevodin@samsung.com \
--cc=edgar.iglesias@gmail.com \
--cc=gxt@mprc.pku.edu.cn \
--cc=hpoussin@reactos.org \
--cc=i.mitsyanko@gmail.com \
--cc=jan.kiszka@web.de \
--cc=jcmvbkbc@gmail.com \
--cc=kbastian@mail.uni-paderborn.de \
--cc=leon.alrae@imgtec.com \
--cc=lig.fnst@cn.fujitsu.com \
--cc=m.kozlov@samsung.com \
--cc=marcel.a@redhat.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=michael@walle.cc \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.chubb@nicta.com.au \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--cc=proljc@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=robh@kernel.org \
--cc=rth@twiddle.net \
--cc=scottwood@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).