From: Ian Campbell Subject: Re: introduce a cache options for PV disks Date: Thu, 27 Jun 2013 12:33:29 +0100 Message-ID: <1372332809.28443.45.camel@zakaz.uk.xensource.com> References: <1372321571.28443.16.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: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: xen-devel@lists.xensource.com, Ian Jackson List-Id: xen-devel@lists.xenproject.org On Thu, 2013-06-27 at 12:25 +0100, Stefano Stabellini wrote: > On Thu, 27 Jun 2013, Ian Campbell wrote: > > On Wed, 2013-06-26 at 18:43 +0100, Stefano Stabellini wrote: > > > Document a per-disk cache option in the xl config file to allow users to > > > select the cache mode that the backend should use to open the disk file > > > or device. > > > > > > Document backend options that are part of the vbd xenstore interface. > > > The existing "mode" and "device-type" as well as the new "cache". > > > > The exiting ones are already documented in xen/include/public/io/blkif.h > > > > It's a bit of a shame that things are split over two files but I think > > putting the new one in blkif.h is better than duplicating things > > further. > > Ah, that's why I couldn't find it under docs! yeah ;-) If you are reediting this file anyway perhaps you could insert a reference (in both directions perhaps) > > > > > Signed-off-by: Stefano Stabellini > > > > > > diff --git a/docs/misc/vbd-interface.txt b/docs/misc/vbd-interface.txt > > > index 3952e73..0584e78 100644 > > > --- a/docs/misc/vbd-interface.txt > > > +++ b/docs/misc/vbd-interface.txt > > > @@ -96,6 +96,29 @@ Guests SHOULD ignore numbers that they do not understand or > > > recognise. They SHOULD check supplied numbers for validity. > > > > > > > > > +Other backend options > > > +--------------------- > > > + > > > +The interface introduces few xenstore nodes to specify other backend > > > +options: > > > + > > > +* mode > > > +Description: file or device opening flags > > > +Mandatory: Yes > > > +Supported values: "w" (read/write), "r" (read-only) > > > + > > > +* cache > > > +Description: file or device cache mode > > > +Mandatory: No > > > +Supported values: "none" (no cache), "writeback" (writeback > > > + caching), "writethrough" (writethrough caching) > > > > I'm not sure the bracketed descriptions are adding anything. > > OK > > > > +* device-type > > > +Description: type of device the backend corresponds to > > > +Mandatory: No > > > +Supported values: "cdrom", "disk" > > > + > > > + > > > + > > > Notes on Linux as a guest > > > ------------------------- > > > > > > diff --git a/docs/misc/xl-disk-configuration.txt b/docs/misc/xl-disk-configuration.txt > > > index 5bd456d..51d376f 100644 > > > --- a/docs/misc/xl-disk-configuration.txt > > > +++ b/docs/misc/xl-disk-configuration.txt > > > @@ -178,6 +178,25 @@ information to be interpreted by the executable program