From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzUTE-0005RN-Cr for qemu-devel@nongnu.org; Tue, 15 Mar 2011 09:39:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzUTD-0003OD-1U for qemu-devel@nongnu.org; Tue, 15 Mar 2011 09:39:32 -0400 Received: from mail-iy0-f173.google.com ([209.85.210.173]:63107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzUTC-0003O1-U7 for qemu-devel@nongnu.org; Tue, 15 Mar 2011 09:39:31 -0400 Received: by iym7 with SMTP id 7so651971iym.4 for ; Tue, 15 Mar 2011 06:39:29 -0700 (PDT) Message-ID: <4D7F6BAB.8040709@codemonkey.ws> Date: Tue, 15 Mar 2011 08:37:47 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [RFC] QCFG: a new mechanism to replace QemuOpts and option handling References: <4D7E5507.8010205@codemonkey.ws> <4D7F4BBC.6010509@redhat.com> In-Reply-To: <4D7F4BBC.6010509@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Chris Wright , Markus Armbruster , Adam Litke , Stefan Hajnoczi , qemu-devel 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 >