[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC v2 36/47] qapi: Rename qmp_marshal_input_FOO
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH RFC v2 36/47] qapi: Rename qmp_marshal_input_FOO() to qmp_marshal_FOO() |
Date: |
Tue, 28 Jul 2015 11:19:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Eric Blake <address@hidden> writes:
> On 07/01/2015 02:22 PM, Markus Armbruster wrote:
>> These functions marshal both input and output.
>>
>> Signed-off-by: Markus Armbruster <address@hidden>
>> ---
>> docs/qapi-code-gen.txt | 4 +-
>> docs/writing-qmp-commands.txt | 8 +-
>> monitor.c | 2 +-
>> qmp-commands.hx | 240 +++++++++++++++++++++---------------------
>> scripts/qapi-commands.py | 4 +-
>> 5 files changed, 129 insertions(+), 129 deletions(-)
>
> Diffstat here says it is a straight rename; likewise the diff on the
> generated code:
>
> qga/qapi-generated/qga-qmp-marshal.c | 116 ++++++++--------
> qmp-commands.h | 240
> +++++++++++++++++------------------
> qmp-marshal.c | 240
> +++++++++++++++++------------------
> 3 files changed, 298 insertions(+), 298 deletions(-)
>
> Missing: you overlooked a comment in qmp.c line 154:
>
> #ifndef CONFIG_SPICE
> /*
> * qmp-commands.hx ensures that QMP command query-spice exists only
> * #ifdef CONFIG_SPICE. Necessary for an accurate query-commands
> * result. However, the QAPI schema is blissfully unaware of that,
> * and the QAPI code generator happily generates a dead
> * qmp_marshal_input_query_spice() that calls qmp_query_spice().
> * Provide it one, or else linking fails.
> * FIXME Educate the QAPI schema on CONFIG_SPICE.
> */
Will fix.
> With that fixed,
> Reviewed-by: Eric Blake <address@hidden>
Thanks!
- Re: [Qemu-devel] [PATCH RFC v2 45/47] qapi: New QMP command query-schema for QMP schema introspection, (continued)