qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Add support for a configuration file


From: andrzej zaborowski
Subject: Re: [Qemu-devel] [PATCH] Add support for a configuration file
Date: Thu, 15 May 2008 16:46:37 +0200

On 15/05/2008, Daniel P. Berrange <address@hidden> wrote:
> On Thu, May 15, 2008 at 02:36:43PM +0200, andrzej zaborowski wrote:
>  > On 15/05/2008, Erik de Castro Lopo <address@hidden> wrote:
>  > > One thing I'd like to see is the ability to include one config file
>  > >  inside another.
>  >
>  > That's a good idea, I suggested preprocessing with a cpp (-like) tool
>  > with this in mind.  This lets you kindof "make your own" syntax for
>  > the config file, redefine instead of search&replace, and allows a lib
>  > like libvirt to have its standard "base" config / "template" config
>  > that would be included by the generated files and used.
>
> We don't really have a 'base' template for QEMU - we only specify the args

Obviously, because there was no config files until now.  What I mean is that
instead of writing the full "net {\n  user;\n  vlan 0;\n"... in every
config file you generate, you'd write user_net(0);, where the user_net
macro is #defined in the template.  With a powerful enough
preprocessor you could even have qemu read your XML configuratoins
directly, given their DTDs or schemas.  With a powerful enough
processor qemu could read the raw binary representation of a libvirt
internal struct.  (I'm not trying to suggest doing any of these of
course)
-- 
Please do not print this email unless absolutely necessary. Spread
environmental awareness.




reply via email to

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