Re: [Qemu-devel] [PATCH 4/6] sysbus: Make devices spawnable via -device

2014-07-02 Thread Alexander Graf
On 02.07.14 08:32, Paolo Bonzini wrote: Il 01/07/2014 23:49, Alexander Graf ha scritto: + +static void machine_init_notify(Notifier *notifier, void *data) +{ +Object *machine = qdev_get_machine(); +Object *container; + +if (object_property_find(machine, "has-dynamic-sysbus", NULL))

Re: [Qemu-devel] [PATCH 4/6] sysbus: Make devices spawnable via -device

2014-07-01 Thread Paolo Bonzini
Il 01/07/2014 23:49, Alexander Graf ha scritto: + +static void machine_init_notify(Notifier *notifier, void *data) +{ +Object *machine = qdev_get_machine(); +Object *container; + +if (object_property_find(machine, "has-dynamic-sysbus", NULL)) { +/* Our machine can handle dynam

[Qemu-devel] [PATCH 4/6] sysbus: Make devices spawnable via -device

2014-07-01 Thread Alexander Graf
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 property "has-dynamic-sysbus" to the