Skip to content

Fix machine class names to use the "-machine" suffix

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10machine: MACHINE_TYPE_NAME macroinclude/hw/boards.h vl.c+7 -12 replies
2/10vexpress: Don't set name on abstract classhw/arm/vexpress.c+0 -11 reply
3/10vexpress: Rename machine classes to use MACHINE_TYPE_NAMEhw/arm/vexpress.c+2 -23 replies
4/10arm: Rename virt machine class to use MACHINE_TYPE_NAMEhw/arm/virt.c+3 -21 reply
5/10pseries: Rename machine class names to use MACHINE_TYPE_NAMEhw/ppc/spapr.c+4 -41 reply
6/10s390-virtio: Rename machine class name to use MACHINE_TYPE_NAMEhw/s390x/s390-virtio.c+3 -21 reply
7/10s390: Rename s390-ccw-virtio-2.4 class name to use MACHINE_TYPE_NAMEhw/s390x/s390-virtio-ccw.c+1 -16 replies
8/10mac99: Use MACHINE_TYPE_NAME to encode class namehw/ppc/mac_newworld.c+1 -11 reply
9/10machine: Ensure all TYPE_MACHINE subclasses have the right suffixhw/core/machine.c+9 -01 reply
10/10machine: Set MachineClass::name automaticallyhw/arm/vexpress.c hw/arm/virt.c hw/core/machine.c +4 more+3 -106 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarcel ApfelbaumDavid GibsonCornelia Huck
SeriesA-b
1/10R-b R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/10] Fix machine class names to use the "-machine" suffix

The machine class names in QEMU are not consistent today. Some of them use the "-machine" suffix, but some use completely different naming conventions. This makes it difficult to implement machine class lookup without iterating through the whole list of machine classes.

This series changes all machines to use "<machine name>-machine" as the class name, so we can simply use object_class_by_name() in the future to lookup machine classes. (This was not done yet because it will also require some changes in the way aliases are handled.)

Cc Alexander Graf <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Cornelia Huck <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Richard Henderson <[email protected]>

Eduardo Habkost (10):
machine: MACHINE_TYPE_NAME macro
vexpress: Don't set name on abstract class
vexpress: Rename machine classes to use MACHINE_TYPE_NAME
arm: Rename virt machine class to use MACHINE_TYPE_NAME
pseries: Rename machine class names to use MACHINE_TYPE_NAME
s390-virtio: Rename machine class name to use MACHINE_TYPE_NAME
s390: Rename s390-ccw-virtio-2.4 class name to use MACHINE_TYPE_NAME
mac99: Use MACHINE_TYPE_NAME to encode class name
machine: Ensure all TYPE_MACHINE subclasses have the right suffix
machine: Set MachineClass::name automatically

 hw/arm/vexpress.c          |  7 ++-----
 hw/arm/virt.c              |  4 ++--
 hw/core/machine.c          | 12 ++++++++++++
 hw/ppc/mac_newworld.c      |  3 +--
 hw/ppc/spapr.c             | 12 ++++--------
 hw/s390x/s390-virtio-ccw.c |  2 +-
 hw/s390x/s390-virtio.c     |  4 ++--
 include/hw/boards.h        |  6 ++++++
 vl.c                       |  3 +--
 9 files changed, 31 insertions(+), 22 deletions(-)
Signature · 1 line
2.1.0