Received: from eggs.gnu.org ([2001:4830:134:3::10]:60973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW5IV-00009z-MW for qemu-devel@nongnu.org; Thu, 12 Mar 2015 11:45:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YW5IS-0007SW-DS for qemu-devel@nongnu.org; Thu, 12 Mar 2015 11:45:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW5IS-0007SP-5v for qemu-devel@nongnu.org; Thu, 12 Mar 2015 11:45:16 -0400 From: Markus Armbruster References: <1426172059-12237-1-git-send-email-armbru@redhat.com> <5501AE63.5060900@redhat.com> Date: Thu, 12 Mar 2015 16:45:06 +0100 In-Reply-To: <5501AE63.5060900@redhat.com> (Paolo Bonzini's message of "Thu, 12 Mar 2015 16:18:59 +0100") Message-ID: <87h9tqw77h.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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: Paolo Bonzini Cc: Cornelia Huck , Peter Maydell , QEMU Developers , Alexander Graf , Andreas =?utf-8?Q?F=C3=A4rber?= Paolo Bonzini writes: > 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. I agree. I'm getting rid of qdev_init() because it's fundamentally tied to qerror_report(). And I'm getting rid of qerror_report() because it doesn't play nicely with error_set(). I can't see anything wrong with qdev_init_nofail(). Except perhaps the name, but improving it doesn't seem to be worth the churn.