From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdzXC-0001f2-GU for qemu-devel@nongnu.org; Mon, 11 Jun 2012 03:59:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdzXA-0006PA-Qa for qemu-devel@nongnu.org; Mon, 11 Jun 2012 03:59:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdzXA-0006P0-IO for qemu-devel@nongnu.org; Mon, 11 Jun 2012 03:59:32 -0400 Message-ID: <4FD5A55C.9070800@redhat.com> Date: Mon, 11 Jun 2012 09:59:24 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1338858018-17189-1-git-send-email-mdroth@linux.vnet.ibm.com> <1338858018-17189-2-git-send-email-mdroth@linux.vnet.ibm.com> <4FD59AA2.3000707@suse.de> <4FD59C3F.2020306@redhat.com> <4FD5A4BA.5020005@suse.de> In-Reply-To: <4FD5A4BA.5020005@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 01/17] qidl: add QEMU IDL processor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: Peter Maydell , aliguori@us.ibm.com, quintela@redhat.com, Michael Roth , qemu-devel@nongnu.org, owasserm@redhat.com, akong@redhat.com, yamahata@valinux.co.jp Il 11/06/2012 09:56, Andreas F=C3=A4rber ha scritto: >> > I thought that was just a convenience choice, not a necessity. The >> > children objects could just as well be heap-allocated. > In that case we'd need to change the instance_init signature. As far as > I've understood from our discussions with Anthony, realize must not > allocate new objects because that may collide with the recursive realiz= e > model, and instance_init is not supposed to fail. But qemu_malloc is also not supposed to fail. It will exit QEMU if it fails. Paolo