Received: from eggs.gnu.org ([2001:4830:134:3::10]:54667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyIMo-0007IV-1b for qemu-devel@nongnu.org; Fri, 29 May 2015 07:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyIMk-0008TL-SR for qemu-devel@nongnu.org; Fri, 29 May 2015 07:22:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyIMk-0008TH-OG for qemu-devel@nongnu.org; Fri, 29 May 2015 07:22:18 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 34F93BC92A for ; Fri, 29 May 2015 11:22:18 +0000 (UTC) From: Markus Armbruster References: <1432815695-31687-1-git-send-email-armbru@redhat.com> <20150529085154.GB3804@noname.redhat.com> Date: Fri, 29 May 2015 13:22:15 +0200 In-Reply-To: <20150529085154.GB3804@noname.redhat.com> (Kevin Wolf's message of "Fri, 29 May 2015 10:51:54 +0200") Message-ID: <877frr4oig.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 0/9] Miscellaneous error reporting improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: pbonzini@redhat.com, qemu-devel@nongnu.org Kevin Wolf writes: > Am 28.05.2015 um 14:21 hat Markus Armbruster geschrieben: >> Touches vl.c, which gives me pretext to ask Paolo: would you be >> willing to take this through your tree? Or should I take it through >> mine? > > After this series we have an ugly half-converted state where > qemu_opts_foreach() has both a return code and an Error object, > and it's not generally true that an error is set for a failing > return code. > > The most confusing part about this is that you have &error_abort almost > everywhere, but the function doesn't actually abort on error, but rather > returns a negative error code and leaves errp alone. True. The function contract spells it out, which hopefully reduces the confusion somewhat. Would you find NULL less confusing than &error_abort? > If you don't want to complete the conversion, can we add it to that wiki > page with the list half-done conversions at least? Can do. "That wiki page" = http://wiki.qemu.org/CodeTransitions > Anyway, my opinion is only authoritative for the block layer, and that > part looks good, so for the blkdebug part: > > Acked-by: Kevin Wolf Thanks! > PS: I would have preferred to be CCed on the whole series instead of > just a single patch. That one patch wasn't the only one that touched > blkdebug and it also wasn't quite enough to understand the context. So > CC on one patch is enough to make me aware of the series, but CC on the > whole series would also make it convenient to review it. I'll try to remember your preference next time.