|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 4/6] sysbus: Make devices spawnable via -device |
Date: | Wed, 02 Jul 2014 08:32:12 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |