]> git.proxmox.com Git - mirror_qemu.git/commit - softmmu/vl.c
vl: list user creatable properties when 'help' is argument
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 6 Sep 2018 13:05:34 +0000 (17:05 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 5 Oct 2018 12:27:09 +0000 (16:27 +0400)
commit1195fa2b08d98ab503155c5cee8831d1ef91aac5
tree896773a259ab9c6a86db6b713a6205d92dab5be3
parent033bfc5e0e450c5f6566cb9dab7e4095d06199c8
vl: list user creatable properties when 'help' is argument

Iterate over the writable class properties, sort and print them out
with the description if available.

Ex: qemu -object memory-backend-file,help
memory-backend-file.align=int
memory-backend-file.discard-data=bool
memory-backend-file.dump=bool - Set to 'off' to exclude from core dump
memory-backend-file.host-nodes=int - Binds memory to the list of NUMA host nodes
memory-backend-file.mem-path=string
memory-backend-file.merge=bool - Mark memory as mergeable
memory-backend-file.pmem=bool
memory-backend-file.policy=HostMemPolicy - Set the NUMA policy
memory-backend-file.prealloc=bool - Preallocate memory
memory-backend-file.share=bool - Mark the memory as private to QEMU or shared
memory-backend-file.size=int - Size of the memory region (ex: 500M)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
qom/object_interfaces.c
vl.c