Skip to content

spapr/virt/pc: Eliminate custom instance_init functions

Eduardo Habkost qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5virt: Eliminate separate instance_init functionshw/arm/virt.c+21 -661 reply
2/5spapr: Use default_machine_opts to set use_hotplug_event_sourcehw/ppc/spapr.c+1 -31 reply
3/5spapr: Use default_machine_opts to set suppress_vmdeschw/ppc/spapr.c+1 -11 reply
4/5spapr: Delete instance_options functionshw/ppc/spapr.c+0 -853 replies
5/5pc: Use default_machine_opts to set suppress_vmdeschw/i386/pc_piix.c+1 -10 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchDavid GibsonPeter Maydell
1/5R-b
2/5A-b
3/5A-b
4/5A-b
5/5

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-arm] [PATCH for-4.0 0/5] spapr/virt/pc: Eliminate custom instance_init functions

Based-on: <[email protected]>

To help us make machine-type version differences introspectable by QEMU, the info need to be available at class_init time, and not require instantiating a machine object.

This series moves machine-type version differences to class_init functions, and let us eliminate version-specific instance_init functions from spapr and virt.

On PC the pc_compat_*() functions still have some KVM-specific code that needs to be moved to class_init before we delete the pc_compat_*() functions. We will probably be able to implement this using AccelClass::compat_props later.

I also plan to move default_machine_opts data to MachineClass::compat_props, after the compat_props/globals cleanup[1] being implemented by Marc-André Lureau is merged.

[1] https://www.mail-archive.com/[email protected]/msg576381.html

Eduardo Habkost (5):
virt: Eliminate separate instance_init functions
spapr: Use default_machine_opts to set use_hotplug_event_source
spapr: Use default_machine_opts to set suppress_vmdesc
spapr: Delete instance_options functions
pc: Use default_machine_opts to set suppress_vmdesc

 hw/arm/virt.c     | 87 +++++++++++---------------------------------
 hw/i386/pc_piix.c |  2 +-
 hw/ppc/spapr.c    | 91 ++---------------------------------------------
 3 files changed, 24 insertions(+), 156 deletions(-)
Signature · 1 line
2.18.0.rc1.1.g3f1ff2140