qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH 2/4] Load global config files by default


From: Gerd Hoffmann
Subject: [Qemu-devel] Re: [PATCH 2/4] Load global config files by default
Date: Fri, 22 Jan 2010 11:33:48 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0

On 01/21/10 19:48, Anthony Liguori wrote:
The ordering is a little troubling.  Command line options are parsed before
loading the default configs which means that the command line configs will be
loaded before the default config.  The effect is that the default config will
override -readconfig directives.
>
It's unclear the best way to handle this.

Maybe we need two passes over the command line options?

-confdir and -nodefconfig switches would be handled in the first pass, then read the global config files (unless disabled), then the second pass.

I think we could also make the default device handling less messy that way by checking -nographic and -nodefaults in the first pass too. Having the machine type (-M) read in the first pass could allow some cleanups too.

cheers,
  Gerd





reply via email to

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