[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 02/18] qapi: add ModuleInfo schema
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v2 02/18] qapi: add ModuleInfo schema |
Date: |
Mon, 14 Jun 2021 18:53:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Gerd Hoffmann <kraxel@redhat.com> writes:
> Hi,
>
>> > +# @arch: module architecture.
>>
>> Semantics?
>>
>> Should this be enum SysEmuTarget?
>
> Probably, will check ...
>
>> > +# @opts: qemu opts implemented by module.
>>
>> Is this the name of a QemuOptsList?
>>
>> Since this isn't a list, a module can only ever provide one
>> QemuOptsList. Sure that's okay?
>
> For the current two in-tree cases yes, and I don't expect this to change
> in the future. We could turn this into a list though to make it
> future-proof.
If it's not much of a bother, then why not?
>> > +{ 'struct': 'Modules',
>> > + 'data': { 'list' : ['ModuleInfo']}}
>>
>> This defines only types, no QMP commands or events. Why do you need the
>> types to be QAPI types?
>
> Want re-use the code to serialize/parse json from/to structs.
> (see patches #3 + #13).
Okay, that's fair.
[...]
- [PATCH v2 00/18] modules: add metadata database, Gerd Hoffmann, 2021/06/10
- [PATCH v2 05/18] modules: add chardev module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 04/18] modules: add virtio-gpu module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 06/18] modules: add audio module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 07/18] modules: add usb-redir module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 09/18] modules: add ui module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 08/18] modules: add ccid module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 11/18] modules: add block module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 10/18] modules: add s390x module annotations, Gerd Hoffmann, 2021/06/10
- [PATCH v2 12/18] modules: add module_load_path_init helper, Gerd Hoffmann, 2021/06/10
- [PATCH v2 13/18] modules: load modinfo.json, Gerd Hoffmann, 2021/06/10