From: Ian Jackson Subject: Re: [PATCH v2] introduce a cache options for PV disks Date: Thu, 27 Jun 2013 17:30:50 +0100 Message-ID: <20940.26810.227963.193621@mariner.uk.xensource.com> References: <20940.19076.523978.4704@mariner.uk.xensource.com> <20940.25537.183890.394352@mariner.uk.xensource.com> <1372350299.8976.26.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1372350299.8976.26.camel@zakaz.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 Campbell Cc: xen-devel@lists.xensource.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH v2] introduce a cache options for PV disks"): > On Thu, 2013-06-27 at 17:09 +0100, Ian Jackson wrote: > > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > > index d218a2d..892ab01 100644 > > --- a/tools/libxl/libxl_types.idl > > +++ b/tools/libxl/libxl_types.idl > > @@ -375,6 +375,7 @@ libxl_device_disk = Struct("device_disk", [ > > ("removable", integer), > > ("readwrite", integer), > > ("is_cdrom", integer), > > + ("direct_io_safe", bool), > > You'll want a #define LIBXL_HAVE_DEVICE_DISK_DIRECT_IO_SAFE (or > something more wieldy) in libxl.h to enable people to write code which > works against different versions of libxl. Ah yes. > Is this deliberately not a defbool? Yes. > > + * > > + * direct-io-safe > > + * Values: 1 > > 0 (==direct-io is unsafe) is explicitly not a valid value? Yes. I could make it permitted. The obvious parsing code would understand it, obviously. > > + * So use of O_DIRECT is safe, in circumstances > > ^Some ? > > Otherwise I can't parse this sentence. Yes. Do I take it you're happy with the general approach ? Ian.