From: Wei Liu Subject: Re: [PATCH for-4.6] libxl: fix libxl__build_hvm error code return path Date: Tue, 11 Aug 2015 13:48:21 +0100 Message-ID: <20150811124820.GJ7460@zion.uk.xensource.com> References: <1438963705-8407-1-git-send-email-roger.pau@citrix.com> <20150811085706.GA7460@zion.uk.xensource.com> <1439297085.9747.236.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZP8z8-0001AL-Uc for xen-devel@lists.xenproject.org; Tue, 11 Aug 2015 12:48:55 +0000 Content-Disposition: inline In-Reply-To: <1439297085.9747.236.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org, Stefano Stabellini , Wei Liu , Ian Jackson , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Tue, Aug 11, 2015 at 01:44:45PM +0100, Ian Campbell wrote: > On Tue, 2015-08-11 at 09:57 +0100, Wei Liu wrote: > > On Fri, Aug 07, 2015 at 06:08:25PM +0200, Roger Pau Monne wrote: > > > This is a simple fix to make sure libxl__build_hvm returns an error = > > > code in > > > case of failure. > > > = > > = > > = > > = > > > Signed-off-by: Roger Pau Monn=E9 > > > Cc: Ian Jackson > > > Cc: Stefano Stabellini > > > Cc: Ian Campbell > > > Cc: Wei Liu > > = > > Acked-by: Wei Liu > = > Unfortunately I think this will result in any valid rc's any path happens > to have being discarded in favour of a generic ERROR_FAIL. > = Don't worry, this is the original behaviour. > If we are going to band aid this for 4.6 then I think setting rc =3D > ERROR_FAIL just after the libxl__domain_device_construct_rdm error handli= ng > might be better. > = > Even better would be to put the rc =3D ERROR_FAIL into the various if (re= t) > blocks. I don't think that would be an unacceptably large patch (it's 3-4 > sites from what I can see) and it would be closer to heading in the right > direction. > = I can do this as well, since Roger is on vacation at the moment. Wei. > Ian.