vl: Use MachineClass instead of global QEMUMachine list
authorMarcel Apfelbaum <marcel.a@redhat.com>
Wed, 5 Mar 2014 17:30:46 +0000 (19:30 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 12 Mar 2014 19:13:02 +0000 (20:13 +0100)
commit261747f176f6f2d88f8268aaebfdd1a1afe887e2
treea54e23a2a5275e64c894ca64cba4c054f6dad4bc
parent36d20cb2b39311869b061e1669cb55ccbf0af759
vl: Use MachineClass instead of global QEMUMachine list

The machine registration flow is refactored to use the QOM functionality.
Instead of linking the machines into a list, each machine has a type
and the types can be traversed in the QOM way.

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
include/hw/boards.h
vl.c