diff options
author | Marcel Apfelbaum <marcel.a@redhat.com> | 2014-03-05 19:30:46 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-12 20:13:02 +0100 |
commit | 261747f176f6f2d88f8268aaebfdd1a1afe887e2 (patch) | |
tree | a54e23a2a5275e64c894ca64cba4c054f6dad4bc /include | |
parent | 36d20cb2b39311869b061e1669cb55ccbf0af759 (diff) | |
download | qemu-261747f176f6f2d88f8268aaebfdd1a1afe887e2.zip qemu-261747f176f6f2d88f8268aaebfdd1a1afe887e2.tar.gz qemu-261747f176f6f2d88f8268aaebfdd1a1afe887e2.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/boards.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h index 1259010..f9c035f 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -51,6 +51,7 @@ struct QEMUMachine { const char *hw_version; }; +#define TYPE_MACHINE_SUFFIX "-machine" int qemu_register_machine(QEMUMachine *m); QEMUMachine *find_default_machine(void); |