Skip to content

machine: Deprecate machine_init()

Andreas Färber qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Use type_init() for all machine QOM typeshw/arm/exynos4_boards.c hw/arm/gumstix.c hw/arm/highbank.c +16 more+34 -570 replies
2/6hw/s390x/css: Use type_init() instead of machine_init()hw/s390x/css.c+1 -11 reply
3/6Introduce config_init() for QemuOptsfsdev/qemu-fsdev-opts.c hw/acpi/core.c hw/smbios/smbios.c +4 more+9 -50 replies
4/6Drop machine_init() and MODULE_INIT_MACHINEinclude/qemu/module.h vl.c+0 -30 replies
5/6exynos4: Further QOM'ify machineshw/arm/exynos4_boards.c+38 -330 replies
6/6pc: Use type_register_static() for machine typesinclude/hw/i386/pc.h+1 -10 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchChristian Borntraeger
1/6
2/6A-b
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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 <[email protected]>
Cc Marcel Apfelbaum <[email protected]>
Cc Michael S. Tsirkin <[email protected]>

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(-)
Signature · 1 line
2.1.4