qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@qumranet.com>
Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org
Subject: Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images
Date: Fri, 10 Aug 2007 15:11:18 -0500	[thread overview]
Message-ID: <46BCC666.6050406@codemonkey.ws> (raw)
In-Reply-To: <46BCBF73.5060406@qumranet.com>

Avi Kivity wrote:
> Anthony Liguori wrote:
>> Avi Kivity wrote:
>>>> This is a big effort but a config file is the right long term 
>>>> solution.
>>>>
>>>>     
>>>
>>> For which use case? management-full or management-less?
>>>   
>>
>> Both.  A config file will be useful not just for expressing the 
>> functionality we have today, but also for describing the guest's 
>> environment in greater detail.  For instance, if you want to support 
>> a bunch of different kinds of embedded systems, it would be very nice 
>> if the machine description was a config file instead of hard coded 
>> such that it was easy to tweak what hardware was present for the 
>> particular embedded system.
>>
>
> Maybe I'm dense today.  Which use case is this?

If you're using QEMU to simulate an embedded platform (ARM or PPC based 
for instance).  There is a huge amount of variety in embedded platforms 
so having to hard code the PC description as a machine type in QEMU is 
kind of annoying.

>>> A managed system will want to supply arguments out of a central 
>>> database.  For a management-less use case, the config file is a hassle.
>>>   
>>
>> As long as all options are still settable via command line (or 
>> stdio), then it's not at all a hassle.
>>
>
> Yes.  But if you don't plan to use it, why implement it?

Well, I do plan to use it.  I'm simply saying that you don't have to use 
it if you don't want to.

There are a lot of knobs in QEMU and most of them have somewhat 
arbitrary defaults.  For instance, when I setup a machine, I don't want 
to use user networking by default, I want to use tap.  A global 
configuration file would be terribly useful for this sort of thing.

> My feeling is that config files are outdated.  When used with a gui, 
> you end up writing silly parsers and stuff and still wrecking things 
> horribly when the the gui writer's expectations don't match reality.  
> When used without a gui, they increase the amount of details one has 
> to remember (where's that config file? I renamed my image, did I 
> remember to update the config file?).  They also make upgrading more 
> difficult.

There's only so much that can be expressed on a command line.  There are 
actually limits to the command line size on a lot of platforms.  I don't 
see why reading options from a file is so much worse than reading them 
from the command line.

Regards,

Anthony Liguori

>
>
>

  reply	other threads:[~2007-08-10 20:11 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-10  4:55 [Qemu-devel] Storing command line options in images Jorge Lucángeli Obes
2007-08-10 16:02 ` [Qemu-devel] Re: [kvm-devel] " Anthony Liguori
2007-08-10 17:14   ` Avi Kivity
2007-08-10 18:43     ` [kvm-devel] [Qemu-devel] " Anthony Liguori
2007-08-10 19:41       ` Avi Kivity
2007-08-10 20:11         ` Anthony Liguori [this message]
2007-08-11  1:41           ` Jorge Lucángeli Obes
2007-08-13  8:55             ` Avi Kivity
2007-08-13  9:19               ` Laurent Vivier
2007-08-13  9:27                 ` Christian MICHON
2007-08-14 14:18                 ` Markus Hitter
2007-08-14 14:31                   ` Laurent Vivier
2007-08-14 19:02                     ` Jorge Lucángeli Obes
2007-08-14 20:07                       ` Thiemo Seufer
2007-08-14 20:46                         ` Christian MICHON
2007-08-13 19:39             ` Thiemo Seufer
2007-08-13 20:26               ` Christian MICHON
2007-08-13 22:21               ` Philip Boulain
2007-08-13 22:27                 ` [Qemu-devel] Re: [kvm-devel] " Jernej Simončič
2007-08-13 23:31                 ` [kvm-devel] [Qemu-devel] " Thiemo Seufer
2007-08-14 14:26                   ` Philip Boulain
2007-08-14  3:17               ` Anthony Liguori
2007-08-14  4:39                 ` Jorge Lucángeli Obes
2007-08-14  7:44                   ` Kevin Wolf
2007-08-14  7:46               ` Laurent Vivier
2007-08-15 21:26                 ` Segher Boessenkool

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=46BCC666.6050406@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=avi@qumranet.com \
    --cc=kvm-devel@lists.sourceforge.net \
    --cc=qemu-devel@nongnu.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).