qmp-commands: move 'query-iothreads' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
5c5bee6418
commit
fdf4d34f83
@ -1945,36 +1945,6 @@ Example:
|
||||
]
|
||||
}
|
||||
|
||||
query-iothreads
|
||||
---------------
|
||||
|
||||
Returns a list of information about each iothread.
|
||||
|
||||
Note this list excludes the QEMU main loop thread, which is not declared
|
||||
using the -object iothread command-line option. It is always the main thread
|
||||
of the process.
|
||||
|
||||
Return a json-array. Each iothread is represented by a json-object, which contains:
|
||||
|
||||
- "id": name of iothread (json-str)
|
||||
- "thread-id": ID of the underlying host thread (json-int)
|
||||
|
||||
Example:
|
||||
|
||||
-> { "execute": "query-iothreads" }
|
||||
<- {
|
||||
"return":[
|
||||
{
|
||||
"id":"iothread0",
|
||||
"thread-id":3134
|
||||
},
|
||||
{
|
||||
"id":"iothread1",
|
||||
"thread-id":3135
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
query-pci
|
||||
---------
|
||||
|
||||
|
@ -1386,6 +1386,22 @@
|
||||
# Returns: a list of @IOThreadInfo for each iothread
|
||||
#
|
||||
# Since: 2.0
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# -> { "execute": "query-iothreads" }
|
||||
# <- { "return": [
|
||||
# {
|
||||
# "id":"iothread0",
|
||||
# "thread-id":3134
|
||||
# },
|
||||
# {
|
||||
# "id":"iothread1",
|
||||
# "thread-id":3135
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
#
|
||||
##
|
||||
{ 'command': 'query-iothreads', 'returns': ['IOThreadInfo'] }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user