qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 09/49] qapi: support nested structs in OptsVi


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2 09/49] qapi: support nested structs in OptsVisitor
Date: Fri, 4 Sep 2015 17:21:40 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

On 08/21/2015 09:37 AM, Kővágó, Zoltán wrote:
> The current OptsVisitor flattens the whole structure, if there are same
> named fields under different paths (like `in' and `out' in `Audiodev'),
> the current visitor can't cope with them (for example setting
> `frequency=44100' will set the in's frequency to 44100 and leave out's
> frequency unspecified).
> 
> This patch fixes it, by always requiring a complete path in case of
> nested structs.  Fields in the path are separated by dots, similar to C
> structs (without pointers), like `in.frequency' or`out.frequency'.

s/or`out/or `out/

> 
> You must provide a full path even in non-ambigous cases.  The qapi

s/ambigous/ambiguous/

> flattening commits hopefully ensures that this change doesn't create
> backward compatibility problems.

Give me some more time to think about 8 and 9 (it's nearly the start of
a 3-day weekend for me). I know I said I'd look at these patches before
Monday, but for now you'll have to live with my review on just 1-7.  Oh
well. I know what I'm starting on next week when I return :)

And we still have plenty of time before qemu 2.5 to get things right.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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