From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V20gd-0004IL-JS for qemu-devel@nongnu.org; Wed, 24 Jul 2013 11:09:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V20gc-0000Np-Hs for qemu-devel@nongnu.org; Wed, 24 Jul 2013 11:09:07 -0400 Received: from cantor2.suse.de ([195.135.220.15]:34106 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V20gc-0000Nh-3i for qemu-devel@nongnu.org; Wed, 24 Jul 2013 11:09:06 -0400 Message-ID: <51EFEE0F.1090605@suse.de> Date: Wed, 24 Jul 2013 17:09:03 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1373307914-18543-1-git-send-email-mst@redhat.com> <1373307914-18543-4-git-send-email-mst@redhat.com> <87fvvo3m2c.fsf@codemonkey.ws> <20130708195259.GA19775@redhat.com> <51EFE7C0.5060202@redhat.com> <51EFEA15.1090700@suse.de> <51EFECE9.3090308@redhat.com> In-Reply-To: <51EFECE9.3090308@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH v2 3/4] i386: generate pc guest info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Anthony Liguori , "Michael S. Tsirkin" , seabios@seabios.org, qemu-devel@nongnu.org, Paolo Bonzini , Aurelien Jarno Hi, Am 24.07.2013 17:04, schrieb Gerd Hoffmann: >>> /me suggests to check out qmp_qom_get() in qmp.c. Some qom aequivale= nt >>> for qdev_find_recursive would be handy, dunno whenever such a thing >>> exists already, Andreas? >> >> Not sure what's needed here? object_resolve_path() and >> object_foreach_child() come to mind... >=20 > object_resolve_path should do to (a) figure whenever we are i440fx or > q35 and (b) get the pcihost device (then read enable_s3 etc properties)= . >=20 > For pvpanic (and maybe others) it might be handy to have "find me the > device of type TYPE_ISA_PVPANIC_DEVICE, anywhere in the tree" > functionality, so the same code works no matter where the isa bridge > happens to live. Or "find me all pci bridges in the system". I think Paolo used object_resolve_path_type("", TYPE_...) for that somewhere in audio code. > Is object_foreach_child recursive? Then it might do the job ... No, recursion would need to be implemented in the callback - my recent recursive QOM realization series had an example of a deep search for devices. Regards, 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