qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/3] object: Add 'help' option for all available backends and properties
@ 2016-09-26 10:16 Lin Ma
  2016-09-26 10:16 ` [Qemu-devel] [PATCH v3 1/3] qom: make base type user-creatable abstract Lin Ma
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Lin Ma @ 2016-09-26 10:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: afaerber, armbru, berrange, pbonzini

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-10-13 10:02 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-26 10:16 [Qemu-devel] [PATCH v3 0/3] object: Add 'help' option for all available backends and properties Lin Ma
2016-09-26 10:16 ` [Qemu-devel] [PATCH v3 1/3] qom: make base type user-creatable abstract Lin Ma
2016-09-26 10:37   ` Daniel P. Berrange
2016-10-10 14:32     ` [Qemu-devel] 答复: " Lin Ma
2016-10-10 14:45       ` Paolo Bonzini
2016-10-10 15:01         ` Daniel P. Berrange
2016-10-10 16:37           ` Paolo Bonzini
2016-09-26 10:16 ` [Qemu-devel] [PATCH v3 2/3] qapi: auto generate enum value strings Lin Ma
2016-09-26 10:38   ` Daniel P. Berrange
2016-09-26 20:17     ` Eric Blake
2016-10-10 15:09       ` [Qemu-devel] 答复: " Lin Ma
2016-10-10 19:00         ` Eric Blake
2016-10-11  6:56           ` Markus Armbruster
2016-10-13 10:02             ` Lin Ma
2016-09-26 10:16 ` [Qemu-devel] [PATCH v3 3/3] object: Add 'help' option for all available backends and properties Lin Ma
2016-09-26 10:41   ` Daniel P. Berrange
2016-10-10 14:38     ` [Qemu-devel] 答复: " Lin Ma
2016-09-26 10:34 ` [Qemu-devel] [PATCH v3 0/3] " no-reply
2016-09-26 10:39 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).