From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7UaP-0003e9-62 for qemu-devel@nongnu.org; Tue, 13 Mar 2012 12:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7UaG-0001Zr-L6 for qemu-devel@nongnu.org; Tue, 13 Mar 2012 12:28:32 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52003 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7UaG-0001ZR-Be for qemu-devel@nongnu.org; Tue, 13 Mar 2012 12:28:24 -0400 Message-ID: <4F5F75A6.70905@suse.de> Date: Tue, 13 Mar 2012 17:28:22 +0100 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <4F5F4D4C.7010805@siemens.com> <4F5F5139.8080205@siemens.com> <4F5F5B80.6080609@suse.de> <4F5F634E.8080507@suse.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] about kvmclock QOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Yong Wu Cc: Jan Kiszka , QEMU Developers , Anthony Liguori Am 13.03.2012 16:21, schrieb Zhi Yong Wu: > On Tue, Mar 13, 2012 at 11:10 PM, Andreas F=E4rber w= rote: >> Am 13.03.2012 15:52, schrieb Zhi Yong Wu: >>> On Tue, Mar 13, 2012 at 10:36 PM, Andreas F=E4rber = wrote: >>>> What you are looking for is the "parent" property which gets set up = by [...adding a child property to some object. Many devices are not yet wired up as such...] >>> You mean that current device object should have one "parent" property= ? >>> Its parent device should have one "child" property pointing to it? >>> But i have not seen this property in qom-list output. >>> [root@f15 qemu]# QMP/qom-list -s /tmp/server.sock / >>> vga/ >>> i440fx/ >>> peripheral/ >>> peripheral-anon/ >> >> Every one of these with */ is a child, in this case of the root "/". := ) > Moreover, why can isa-serial device be liste in qom-list output but > kvmclock can't? where is the difference between their QOM? Because someone must give the child a name and assign a parent to it by calling said object_property_add_child(). ("wired up" above) Anthony had an RFC series refactoring i440fx, for instance, that sparked some controversy and was not followed-up yet. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg