Re: [Qemu-devel] [PATCH 04/21] qmp: Dumb down how we run QMP command registration

2017-02-24 Thread Markus Armbruster
Eric Blake writes: > On 02/23/2017 03:45 PM, Markus Armbruster wrote: >> The way we get QMP commands registered is high tech: >> >> * qapi-commands.py generates qmp_init_marshal() that does the actual work >> >> * it also generates the magic to register it as a MODULE_INIT_QAPI >> function, s

Re: [Qemu-devel] [PATCH 04/21] qmp: Dumb down how we run QMP command registration

2017-02-24 Thread Eric Blake
On 02/23/2017 03:45 PM, Markus Armbruster wrote: > The way we get QMP commands registered is high tech: > > * qapi-commands.py generates qmp_init_marshal() that does the actual work > > * it also generates the magic to register it as a MODULE_INIT_QAPI > function, so it runs when someone calls

[Qemu-devel] [PATCH 04/21] qmp: Dumb down how we run QMP command registration

2017-02-23 Thread Markus Armbruster
The way we get QMP commands registered is high tech: * qapi-commands.py generates qmp_init_marshal() that does the actual work * it also generates the magic to register it as a MODULE_INIT_QAPI function, so it runs when someone calls module_call_init(MODULE_INIT_QAPI) * main() calls module_c