qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [PATCH 01/22] QemuOpts: fix a bug in QemuOpts when


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] Re: [PATCH 01/22] QemuOpts: fix a bug in QemuOpts when setting an option twice
Date: Wed, 09 Jun 2010 09:01:41 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4

On 06/08/10 18:04, Anthony Liguori wrote:
On 06/08/2010 10:37 AM, Gerd Hoffmann wrote:
What'd expect is:

[net "user"]
guestfwd = <fw1> <fw2> <fw3>..

I think multiple entry options are probably not a good thing to have.

We already have them though (-net switch so QemuOpts added them).

Yeah, but let's ignore that for the moment. If we didn't have historical
baggage, would we prefer the syntax above or do you think there's value
in specifying it on separate lines?

guestfwd entries are relatively long, so having them on one line is slightly annonying. I'd tend to have them on separate lines. But maybe it isn't a bad idea to extend the config file syntax to allow being more explicit here, like this (borrowed from makefile syntax):

  option := value       assign, overriding any existing value(s)
  option += value       append

Maybe also

  option ?= value       set only in case it isn't set yet.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]