Re: [RFC PATCH v2 2/8] qapi: net: introduce a way to bypass qemu_opts_parse_noisily()

2022-06-15 Thread Markus Armbruster
Laurent Vivier writes: > On 13/05/2022 13:21, Markus Armbruster wrote: >> Laurent Vivier writes: >> >>> As qemu_opts_parse_noisily() flattens the QAPI structures ("type" field >>> of Netdev structure can collides with "type" field of SocketAddress), >> >> To remember how this works, I have to

Re: [RFC PATCH v2 2/8] qapi: net: introduce a way to bypass qemu_opts_parse_noisily()

2022-06-09 Thread Laurent Vivier
On 13/05/2022 13:21, Markus Armbruster wrote: Laurent Vivier writes: As qemu_opts_parse_noisily() flattens the QAPI structures ("type" field of Netdev structure can collides with "type" field of SocketAddress), To remember how this works, I have to write a more verbose version of the above.

Re: [RFC PATCH v2 2/8] qapi: net: introduce a way to bypass qemu_opts_parse_noisily()

2022-05-13 Thread Markus Armbruster
Laurent Vivier writes: > As qemu_opts_parse_noisily() flattens the QAPI structures ("type" field > of Netdev structure can collides with "type" field of SocketAddress), To remember how this works, I have to write a more verbose version of the above. Why not post it then, so here goes.

[RFC PATCH v2 2/8] qapi: net: introduce a way to bypass qemu_opts_parse_noisily()

2022-05-12 Thread Laurent Vivier
As qemu_opts_parse_noisily() flattens the QAPI structures ("type" field of Netdev structure can collides with "type" field of SocketAddress), we introduce a way to bypass qemu_opts_parse_noisily() and use directly visit_type_Netdev() to parse the backend parameters. Signed-off-by: Laurent Vivier