|
From: | Alexander Graf |
Subject: | Re: [Qemu-devel] [PATCH 4/6] sysbus: Make devices spawnable via -device |
Date: | Wed, 02 Jul 2014 17:36:04 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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)) {+ /* Our machine can handle dynamic sysbus devices, we're all good */+ return; + }Does it need to be a property, or can it simply be a bool in MachineClass?
Sure - I'll change it to be a bool in MachineClass and QEMUMachine (I really don't want to have the qom-machinification also as part of this patch set)
Alex
[Prev in Thread] | Current Thread | [Next in Thread] |