[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v7 03/12] docs: add feature document for Xen hypervisor sysfs-like support

> On Apr 2, 2020, at 4:46 PM, Juergen Gross <JGross@xxxxxxxx> wrote:
> +* {VALUE, VALUE, ... } -- a list of possible values separated by "," and
> +  enclosed in "{" and "}".
> +So an entry could look like this:
> +
> +    /cpu-bugs/active-pv/xpti = ("No"|{"dom0", "domU", "PCID on"}) [w,X86,PV]
> +
> +Possible values would be "No" or a list of "dom0", "domU", and "PCID on".

One thing that wasn’t clear to me here:  Does the “list” look like

    “dom0", “domU", “PCID on”


    {dom0, domU, PCID on}


    {“dom0”, “domU”, “PCID on”}


Another question that occurs to me from asking this question: in a case like 
this, are we generally expecting to have options with spaces in them (like 
“PCID on”)? And/or, are we expecting the strings themselves to have quotes in 
them? If so, commands to manipulate these will start to look a little gnarly:

    xenhypfs write <path> “{\”dom0\”, \”PCID on\”}”

It seems like it would be nicer to be able to write:

    xenhypfs write <path> "{dom0, PCID-on}”

(Maybe this will be made more clear later in the series, just thought I’d share 
my thoughts / confusion here.)




Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.