machine: Set MachineClass::name automatically
commit98cec76a7076c4a38e16f1a9de170a7942b3be54
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 20 Aug 2015 21:54:36 +0000 (20 14:54 -0700)
committerAndreas Färber <afaerber@suse.de>
Sat, 19 Sep 2015 14:39:28 +0000 (19 16:39 +0200)
tree22f0ef15c6c434a10033aeaf77717851e4fc3127
parentdcb3d601115eed77aef543fe3a920adc17544e06
machine: Set MachineClass::name automatically

Now all TYPE_MACHINE subclasses use MACHINE_TYPE_NAME to generate the
class name. So instead of requiring each subclass to set
MachineClass::name manually, we can now set it automatically at the
TYPE_MACHINE class_base_init() function.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
[AF/ehabkost: Updated for s390-ccw machines]
[AF: Cleanup of intermediate virt and vexpress name handling]
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/arm/vexpress.c
hw/arm/virt.c
hw/core/machine.c
hw/ppc/mac_newworld.c
hw/ppc/spapr.c
hw/s390x/s390-virtio-ccw.c
hw/s390x/s390-virtio.c
vl.c