xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Anthony PERARD <anthony.perard@citrix.com>,
	<xen-devel@lists.xenproject.org>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>, Wei Liu <wl@xen.org>
Subject: Re: [Xen-devel] [PATCH] libxlu: Handle += in config files
Date: Tue, 13 Aug 2019 16:06:33 +0100	[thread overview]
Message-ID: <1ec7f229-e1b9-5919-1337-ecb29124b182@citrix.com> (raw)
In-Reply-To: <20190813144827.6318-1-anthony.perard@citrix.com>

On 13/08/2019 15:48, Anthony PERARD wrote:
> Handle += of both strings and lists.
>
> If += is used for config options expected to be numbers, then a
> warning is printed and the config option ignored (because xl ignores
> config options with errors).
>
> This is to be used for development purposes, where modifying config
> option can be done on the `xl create' command line.
>
> One could have a cmdline= in the cfg file, and specify cmdline+= on
> the `xl create` command line without the need to write the whole
> cmdline in `xl' command line but simply append to the one in the cfg file.
> Or add an extra vif or disk by simply having "vif += [ '', ];" in the
> `xl' cmdline.
>
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> ---
>
> Notes:
>     Commiter, the libxlu_cfg_?.[hc] files needs to be regenerated. (with make)
>     
>     This is a different proposal to Andrew's patch:
>     <20190805144910.20223-1-andrew.cooper3@citrix.com>
>     [PATCH] tools/xl: Make extra= usable in combination with cmdline=

I gave this a spin, but got:

[root@fusebot ~]# ./xlplus create shim.cfg
ramdisk=\"/root/tests/selftest/test-hvm64-selftest\"
cmdline+=\"dom0=pvh\ dom0-iommu=none\"
Parsing config from shim.cfg
shim.cfg:19: config parsing error near `+="dom0=pvh': lexical error
warning: Config file looks like it contains Python code.
warning:  Arbitrary Python is no longer supported.
warning:  See http://wiki.xen.org/wiki/PythonInXlConfig
Failed to parse config: Invalid argument

I can't any combination of syntax which xl is happy with.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-08-13 15:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-13 14:48 [Xen-devel] [PATCH] libxlu: Handle += in config files Anthony PERARD
2019-08-13 15:06 ` Andrew Cooper [this message]
2019-08-13 15:30   ` Anthony PERARD
2019-08-13 15:47     ` Andrew Cooper
2019-08-13 16:42       ` Anthony PERARD
2019-08-16 12:47         ` Wei Liu
2019-08-16 13:09           ` Anthony PERARD
2019-09-17 14:57         ` Ian Jackson
2019-09-20 11:21           ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ec7f229-e1b9-5919-1337-ecb29124b182@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).