qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/6] machine: Deprecate machine_init()


From: Andreas Färber
Subject: [Qemu-devel] [PATCH 0/6] machine: Deprecate machine_init()
Date: Sat, 19 Sep 2015 17:36:37 +0200

Hello,

Based on my pending qom-next pull, this series continues Eduardo's machine 
cleanups.
Having eliminated QEMUMachine and qemu_machine_register(), this series 
eliminates
machine_init() and MODULE_INIT_MACHINE.

As a side effect a few non-machine callers had to be updated, mostly for 
QemuOpts.

It goes on to update Exynos4 machines for QOM, demonstrating that 
DEFINE_MACHINE()
can be inferior to inlining the QOM boilerplate code in case of multiple 
machines.

Independently, I noticed a nit in the PC machine macro I'm touching that could
probably even be cherry-picked.

Regards,
Andreas

Cc: Eduardo Habkost <address@hidden>
Cc: Marcel Apfelbaum <address@hidden>
Cc: Michael S. Tsirkin <address@hidden>

Andreas Färber (6):
  Use type_init() for all machine QOM types
  hw/s390x/css: Use type_init() instead of machine_init()
  Introduce config_init() for QemuOpts
  Drop machine_init() and MODULE_INIT_MACHINE
  exynos4: Further QOM'ify machines
  pc: Use type_register_static() for machine types

 fsdev/qemu-fsdev-opts.c |  2 +-
 hw/acpi/core.c          |  2 +-
 hw/arm/exynos4_boards.c | 73 ++++++++++++++++++++++++++-----------------------
 hw/arm/gumstix.c        |  2 +-
 hw/arm/highbank.c       |  2 +-
 hw/arm/nseries.c        |  2 +-
 hw/arm/omap_sx1.c       |  2 +-
 hw/arm/realview.c       |  2 +-
 hw/arm/spitz.c          | 15 ++++------
 hw/arm/stellaris.c      | 11 ++------
 hw/arm/versatilepb.c    | 11 ++------
 hw/arm/vexpress.c       |  2 +-
 hw/arm/virt.c           |  2 +-
 hw/lm32/lm32_boards.c   |  2 +-
 hw/mips/mips_jazz.c     |  2 +-
 hw/ppc/ppc405_boards.c  |  2 +-
 hw/s390x/css.c          |  2 +-
 hw/smbios/smbios.c      |  2 +-
 hw/sparc/sun4m.c        | 14 ++++------
 hw/sparc64/sun4u.c      | 12 +++-----
 hw/xtensa/xtfpga.c      |  2 +-
 include/hw/boards.h     |  2 +-
 include/hw/i386/pc.h    |  4 +--
 include/qemu/module.h   |  4 +--
 ui/spice-core.c         |  2 +-
 ui/vnc.c                |  2 +-
 vl.c                    |  3 +-
 27 files changed, 83 insertions(+), 100 deletions(-)

-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]