From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPxaO-0007RL-83 for qemu-devel@nongnu.org; Tue, 18 Mar 2014 13:14:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPxaF-0001ox-6g for qemu-devel@nongnu.org; Tue, 18 Mar 2014 13:13:56 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:42270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPxaE-0001ol-Sy for qemu-devel@nongnu.org; Tue, 18 Mar 2014 13:13:47 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 18 Mar 2014 17:13:45 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 12C961B08040 for ; Tue, 18 Mar 2014 17:13:32 +0000 (GMT) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s2IHDU0361341706 for ; Tue, 18 Mar 2014 17:13:30 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s2IHDfj5026338 for ; Tue, 18 Mar 2014 11:13:42 -0600 Date: Tue, 18 Mar 2014 18:13:40 +0100 From: Cornelia Huck Message-ID: <20140318181340.28aa8a2d.cornelia.huck@de.ibm.com> In-Reply-To: <53286FF9.6050602@redhat.com> References: <1395079921-29325-1-git-send-email-cornelia.huck@de.ibm.com> <1395079921-29325-4-git-send-email-cornelia.huck@de.ibm.com> <53286FF9.6050602@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 3/5] s390x: Add I/O adapter registration. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: linux-s390@vger.kernel.org, kvm@vger.kernel.org, gleb@kernel.org, agraf@suse.de, qemu-devel@nongnu.org, borntraeger@de.ibm.com On Tue, 18 Mar 2014 17:10:33 +0100 Paolo Bonzini wrote: > Il 17/03/2014 19:11, Cornelia Huck ha scritto: > > +static KVMS390FLICState *s390_get_flic(void) > > +{ > > + ObjectProperty *op = object_property_find(qdev_get_machine(), > > + "s390-flic", NULL); > > + > > + if (op) { > > + return op->opaque; > > + } else { > > + return NULL; > > + } > > +} > > You can use object_resolve_path("/machine/s390-flic", NULL) instead. Will do.