From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3Pko-00018j-QJ for qemu-devel@nongnu.org; Mon, 20 Aug 2012 07:02:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3Pkn-00080l-Q9 for qemu-devel@nongnu.org; Mon, 20 Aug 2012 07:02:42 -0400 Received: from cantor2.suse.de ([195.135.220.15]:59296 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3Pkn-00080f-JZ for qemu-devel@nongnu.org; Mon, 20 Aug 2012 07:02:41 -0400 Message-ID: <5032194B.1010503@suse.de> Date: Mon, 20 Aug 2012 13:02:35 +0200 From: =?ISO-8859-1?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1344925665-24626-1-git-send-email-peter.crosthwaite@petalogix.com> <87r4r9bpsm.fsf@codemonkey.ws> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC v0] HACK: qom: object_property_set: abort on failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: pbonzini@redhat.com, Anthony Liguori , qemu-devel@nongnu.org Am 20.08.2012 04:18, schrieb Peter Crosthwaite: > [...] Here's my code as it stands: >=20 > Error *errp =3D NULL; > object_property_set_link(OBJECT(dev), OBJECT(cpus[0]), "cpu0", &errp); > assert_no_error(errp); There's two pitfalls there, the needed object_property_add_link() that you stumbled over and also the need for a canonical path at the time of setting the link. What target is this (microblaze?) and which path and place for adding it as a child do you plan to use? 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