Skip to content

object: Add 'help' option for all available backends and properties

Lin Ma qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 15 repliesIn review
  2. v33 patches 14 repliesSuperseded
  3. v21 patch 15 repliesSuperseded

Changes in v4 from the cover letter

* drop the code about manually define interface 'user-creatable' as abstract.
* add test case for the generated enum value str.
* split the code about adding descriptions to class properties into a separate patch.
* minor changes in user_creatable_help_func to ignore interface TYPE_USER_CREATABLE.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5qom: Add interface check in object_class_is_abstractqom/object.c+5 -13 replies
2/5qapi: auto generate enum value stringsscripts/qapi-types.py scripts/qapi.py+11 -03 replies
3/5qapi: add test case for the generated enum value strtests/test-qmp-commands.c+18 -01 reply
4/5backends: add description for enum class propertiesbackends/hostmem.c crypto/secret.c crypto/tlscreds.c +1 more+16 -04 replies
5/5object: Add 'help' option for all available backends and propertiesinclude/qom/object_interfaces.h qemu-options.hx qom/object_interfaces.c +1 more+68 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/5] object: Add 'help' option for all available backends and properties

V3->V4:
* drop the code about manually define interface 'user-creatable' as abstract.
* add test case for the generated enum value str.
* split the code about adding descriptions to class properties into a separate patch.
* minor changes in user_creatable_help_func to ignore interface TYPE_USER_CREATABLE.

V2->v3:
* make type user-creatable abstract.
* auto generate enum value strings during qemu configuration.(Borrowwed Daniel's code)
* save the generated enum value strings into member description of ObjectProperty.
* drop the judgement logic of whether a property has an enumeration type anymore, output member description of ObjectProperty directly.
* at least, user_creatable_help_func should be put after 'object_property_add_child(object_get_root(), "machine",OBJECT(current_machine), ...)', because host_memory_backend_init needs to access an instance of type machine.

V1->V2:
* Output the acceptable values of enum types by "-object TYPE-NAME,help"

Lin Ma (5):
qom: Add interface check in object_class_is_abstract
qapi: auto generate enum value strings
qapi: add test case for the generated enum value str
backends: add description for enum class properties
object: Add 'help' option for all available backends and properties

 backends/hostmem.c              |  4 +++
 crypto/secret.c                 |  4 +++
 crypto/tlscreds.c               |  4 +++
 include/qom/object_interfaces.h |  2 ++
 net/filter.c                    |  4 +++
 qemu-options.hx                 |  7 +++++-
 qom/object.c                    |  6 ++++-
 qom/object_interfaces.c         | 55 +++++++++++++++++++++++++++++++++++++++++
 scripts/qapi-types.py           |  2 ++
 scripts/qapi.py                 |  9 +++++++
 tests/test-qmp-commands.c       | 18 ++++++++++++++
 vl.c                            |  5 ++++
 12 files changed, 118 insertions(+), 2 deletions(-)
Signature · 1 line
2.9.2