hw/arm/virt: add dynamic sysbus device support
commit5f7a5a0edc4a2f65293658eb540290ddf9a1988a
authorEric Auger <eric.auger@linaro.org>
Tue, 2 Jun 2015 11:29:13 +0000 (2 12:29 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 2 Jun 2015 15:31:18 +0000 (2 16:31 +0100)
treed8eccc99a31af35ab969f534665e33191f2f03f3
parentac9d32e39664e060cd1b538ff190980d57ad69e4
hw/arm/virt: add dynamic sysbus device support

Allows sysbus devices to be instantiated from command line by
using -device option. Machvirt creates a platform bus at init.
The dynamic sysbus devices are attached to this platform bus device.

The platform bus device registers a machine init done notifier
whose role will be to bind the dynamic sysbus devices. Indeed
dynamic sysbus devices are created after machine init.

machvirt also registers a notifier that will build the device
tree nodes for the platform bus and its children dynamic sysbus
devices.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1433244554-12898-4-git-send-email-eric.auger@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt.c
include/hw/arm/virt.h