From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2E61-0001Iv-Ua for qemu-devel@nongnu.org; Wed, 02 Jul 2014 02:32:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2E5s-0005iU-TP for qemu-devel@nongnu.org; Wed, 02 Jul 2014 02:32:45 -0400 Sender: Paolo Bonzini Message-ID: <53B3A76C.4010201@redhat.com> Date: Wed, 02 Jul 2014 08:32:12 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1404251378-5242-1-git-send-email-agraf@suse.de> <1404251378-5242-5-git-send-email-agraf@suse.de> In-Reply-To: <1404251378-5242-5-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/6] sysbus: Make devices spawnable via -device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf , qemu-ppc@nongnu.org Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, eric.auger@linaro.org, qemu-devel@nongnu.org, sean.stalley@intel.com, afaerber@suse.de 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