[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 02/18] qapi: add ModuleInfo schema
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH v2 02/18] qapi: add ModuleInfo schema |
Date: |
Mon, 14 Jun 2021 17:21:17 +0200 |
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.
> > +{ '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).
> > --- a/qapi/qapi-schema.json
> > +++ b/qapi/qapi-schema.json
> > @@ -93,3 +93,4 @@
> > { 'include': 'audio.json' }
> > { 'include': 'acpi.json' }
> > { 'include': 'pci.json' }
> > +{ 'include': 'modules.json' }
>
> Is this the place you want the section to be? Remember, generated
> documentation follows source order.
Ah, *this* the ordering is important for. I'll check, was just
appending to the end of the list ...
thanks,
Gerd
- [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