Received: from eggs.gnu.org ([208.118.235.92]:33984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrSHl-00042C-Dn for qemu-devel@nongnu.org; Wed, 18 Jul 2012 07:19:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrSHj-0001TF-RG for qemu-devel@nongnu.org; Wed, 18 Jul 2012 07:19:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrSHj-0001SI-BI for qemu-devel@nongnu.org; Wed, 18 Jul 2012 07:19:15 -0400 From: Markus Armbruster References: <1342452355-9341-1-git-send-email-peter.maydell@linaro.org> <50068DF9.4010408@suse.de> Date: Wed, 18 Jul 2012 13:19:10 +0200 In-Reply-To: (Peter Maydell's message of "Wed, 18 Jul 2012 11:35:55 +0100") Message-ID: <87a9yx48r5.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] qerror: Add QERR_PROPERTY_SET_AFTER_REALIZE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Anthony Liguori , patches@linaro.org, qemu-devel@nongnu.org, Luiz Capitulino , Paolo Bonzini , Andreas =?utf-8?Q?F=C3=A4rber?= Peter Maydell writes: > n 18 July 2012 11:20, Andreas F=C3=A4rber wrote: >> Am 16.07.2012 17:25, schrieb Peter Maydell: >>> Add a new QError QERR_PROPERTY_SET_AFTER_REALIZE for attempts >>> to set a QOM or qdev property after the object/device has been >>> realized. This allows a slightly more informative diagnostic >>> than the previous "permission denied" message. >>> >>> Signed-off-by: Peter Maydell >>> --- >>> Changes since the v1 (which was sent way back in March...): >>> * rebased on master now a pile of qdev/qom changesd have landed >>> * fixed some overlong lines >>> * avoid gcc '?:' extension >>> * a couple of set_ functions in qdev-properties.c are new since v1 >>> and needed their QERR_PERMISSION_DENIED checks changing >> >> This does not yet seem to take into account the discussion with libvirt >> and Anthony on what parameters to pass. The ID generalization was >> nack'ed by Anthony and a QOM path was suggested as alternative. Could >> you please look into that? > > I'm afraid I'm not really sure what you're referring to here -- > do you have a link to a discussion? > > All I want is for errors printed to the user to be a bit more > helpful; the whole qerror infrastructure seems to make it > somewhere between difficult and impossible to do that :-( Yup. One of the reasons why I detest it. A recent thread on how to recover from this disaster: http://lists.nongnu.org/archive/html/qemu-devel/2012-06/msg03469.html