qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [RFC] QCFG: a new mechanism to replace QemuOpts and


From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: [RFC] QCFG: a new mechanism to replace QemuOpts and option handling
Date: Tue, 15 Mar 2011 08:37:47 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

On 03/15/2011 06:21 AM, Kevin Wolf wrote:
Am 14.03.2011 18:48, schrieb Anthony Liguori:
I've got a spec written up at http://wiki.qemu.org/Features/QCFG.
Initial code is in my QAPI tree.
One question about a small detail on this wiki page:

typedef struct BlockdevConfig {
     char * file;
     struct BlockdevConfig * backing_file;

     struct BlockdevConfig * next;
} BlockdevConfig;
What is the 'next' pointer used for,

This is a standard part of QAPI. All types get a next pointer added such that we can support lists of complex types.

  are you going to store a list of
all -blockdev options used? And why isn't it a QLIST or something?

Two reasons. QLIST requires another type for the head of the list which would complicate things overall. Second is that these types are part of the libqmp interface and I didn't want to force qemu-queue on any consumer of libqmp.

Regards,

Anthony Liguori

Kevin





reply via email to

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