From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW4tB-0006bO-Jj for qemu-devel@nongnu.org; Thu, 12 Mar 2015 11:19:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YW4t6-0005Rv-Bt for qemu-devel@nongnu.org; Thu, 12 Mar 2015 11:19:09 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:41093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW4t6-0005Re-5H for qemu-devel@nongnu.org; Thu, 12 Mar 2015 11:19:04 -0400 Received: by wesw62 with SMTP id w62so17113363wes.8 for ; Thu, 12 Mar 2015 08:19:03 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5501AE63.5060900@redhat.com> Date: Thu, 12 Mar 2015 16:18:59 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1426172059-12237-1-git-send-email-armbru@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qdev: Deprecated qdev_init() is finally unused, drop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Markus Armbruster Cc: Cornelia Huck , Alexander Graf , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , QEMU Developers On 12/03/2015 16:10, Peter Maydell wrote: > So is the non-deprecated approach to have the board call > object_property_set_bool(OBJECT(dev), true, "realized", &err); > directly itself (handling errors however it feels like) rather > than calling qdev_init_nofail() ? qdev_init_nofail seems a good enough name for a shortcut... The problem with qdev_init was that it was a symptom of bad errors, but I would happily un-deprecate qdev_init_nofail, especially until we figure out whether we really want recursive realization. Paolo