sysbus: Make devices spawnable via -device
commit33cd52b5d7b9adfd009e95f07e6c64dd88ae2a31
authorAlexander Graf <agraf@suse.de>
Tue, 1 Jul 2014 14:14:41 +0000 (1 16:14 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 4 Nov 2014 22:26:14 +0000 (4 23:26 +0100)
treeee9d109bd8f45c7cff2cd4490ff106835a21c510
parenteb5722801c84f23428c50e2336d02e400ce55deb
sysbus: Make devices spawnable via -device

Now that we can properly map sysbus devices that haven't been connected to
something forcefully by C code, we can allow the -device command line option
to spawn them.

For machines that don't implement dynamic sysbus assignment in their board
files we add a new bool "has_dynamic_sysbus" to the machine class.
When that property is false (default), we bail out when we see dynamically
spawned sysbus devices, like we did before.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/core/machine.c
hw/core/sysbus.c
include/hw/boards.h
vl.c