From: Stefano Stabellini Subject: Re: [PATCH 1/1] libxl: use qemu-xen with PV guests by default Date: Fri, 20 Apr 2012 16:28:34 +0100 Message-ID: References: <1334926480-21094-1-git-send-email-stefano.stabellini@eu.citrix.com> <20369.24079.242104.252793@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20369.24079.242104.252793@mariner.uk.xensource.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 Jackson Cc: "xen-devel@lists.xensource.com" , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 20 Apr 2012, Ian Jackson wrote: > Stefano Stabellini writes ("[PATCH 1/1] libxl: use qemu-xen with PV guests by default"): > > qemu-xen offers better disk performances than qemu-xen-traditional > > because it supports Linux native AIO: use it for PV guests if it is > > available. > ... > > + rc = stat(dm, &buf); > > + /* qemu-xen unavailable, use qemu-xen-traditional */ > > Firstly, why not use access(2) rather than stat(2) ? > > Secondly you ignore the errno value. errnos other than ENOENT (or > perhaps ENOTDIR) should perhaps cause us to bomb out, and in any case > the errno value should be logged. you have two good points there, I'll resubmit.