From: "Jan Beulich" Subject: Re: [PATCH v4 8/8] ioreq-server: bring the PCI hotplug controller implementation into Xen Date: Wed, 09 Apr 2014 15:47:20 +0100 Message-ID: <53457998020000780000745A@nat28.tlf.novell.com> References: <1396451496-5716-1-git-send-email-paul.durrant@citrix.com> <1396451496-5716-9-git-send-email-paul.durrant@citrix.com> <5345686F0200007800007313@nat28.tlf.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02D3DA4@AMSPEX01CL01.citrite.net> <53456D060200007800007389@nat28.tlf.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02D3F89@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02D3F89@AMSPEX01CL01.citrite.net> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: Ian Jackson , Stefano Stabellini , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 09.04.14 at 16:25, wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> >>> On 09.04.14 at 15:42, wrote: >> > Personally I find using forward jumps to fail labels the most readable form >> > of error exit - I wish they were used more widely. >> >> Interesting - almost everyone/-thing involved in educating me in >> programming skills recommended to try to get away without goto >> altogether, unless programming Fortran, Basic or some such. >> > > In my case it comes from programming for SPARC where forward branches were > (are?) statically predicted untaken, so much better to code your error path > as a single forward branch. Don't have to worry about such things for x86, > but I'm used to reading code that looks like that :-/ The static prediction rules are similar on x86, but there's no guarantee that what is a forward branch at the source level would end up being one in the translated code. That's what we've got likely()/unlikely() for. Jan