From: Ian Jackson Subject: Re: [PATCH v4 2/4] docs: Introduce xenstore paths for PV driver information Date: Mon, 16 Nov 2015 17:56:07 +0000 Message-ID: <22090.6327.289300.240711@mariner.uk.xensource.com> References: <1447672929-9053-1-git-send-email-paul.durrant@citrix.com> <1447672929-9053-3-git-send-email-paul.durrant@citrix.com> <22090.5097.180615.80999@mariner.uk.xensource.com> <9AAE0902D5BC7E449B7C8E4E778ABCD02F673C8B@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZyO0i-0000vp-O9 for xen-devel@lists.xenproject.org; Mon, 16 Nov 2015 17:56:12 +0000 In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02F673C8B@AMSPEX01CL01.citrite.net> 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: "xen-devel@lists.xenproject.org" , "Keir (Xen.org)" , Ian Campbell , Jan Beulich , "Tim (Xen.org)" List-Id: xen-devel@lists.xenproject.org Paul Durrant writes ("RE: [PATCH v4 2/4] docs: Introduce xenstore paths for PV driver information"): > " While xenstore and most tools and APIs are capable of dealing with > arbitrary binary data as values, this should generally be avoided. > Data should generally be human-readable for ease of management and > debugging; xenstore is not a high-performance facility and should be > used only for small amounts of control plane data. Therefore xenstore > values should normally be 7-bit ASCII text strings containing bytes > 0x20..0x7f only, and should not contain a trailing nul byte. (The > APIs used for accessing xenstore generally add a nul when reading, for > the caller's convenience.)" > > So, should we allow anything other than 7-bit ASCII? It does say `generally'. If this is user-facing, perhaps it should be UTF-8... > > > + ATTRIBUTES -- Optional human readable text enclosed in > > > + parentheses to denote attributes of the > > > + software, e.g. "(debug)" > > > > What are the parentheses for ? How might a toolstack provide > > facilities to match this ? > > I was not expecting any matching on attributes, since it's optional anyway. I guess the parentheses are indeed redundant. Before you know it a user is going to want to say `reboot all my VMs with debugging PV drivers'... Ian.