qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v3 0/3] object: Add 'help' option for all available


From: Lin Ma
Subject: [Qemu-devel] [PATCH v3 0/3] object: Add 'help' option for all available backends and properties
Date: Mon, 26 Sep 2016 18:16:24 +0800

Print available object backend types and the relevant properties.

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 (3):
  qom: make base type user-creatable abstract
  qapi: auto generate enum value strings
  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_interfaces.c         | 49 +++++++++++++++++++++++++++++++++++++++++
 scripts/qapi-types.py           |  2 ++
 scripts/qapi.py                 |  9 ++++++++
 vl.c                            |  5 +++++
 10 files changed, 89 insertions(+), 1 deletion(-)

-- 
2.9.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]