mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
qmp: add query-iothreads command
The "query-iothreads" command returns a list of information about iothreads. See the patch for API documentation. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
88eb7c29e4
commit
dc3dd0d2be
3 changed files with 104 additions and 0 deletions
|
@ -2326,6 +2326,45 @@ EQMP
|
|||
.mhandler.cmd_new = qmp_marshal_input_query_cpus,
|
||||
},
|
||||
|
||||
SQMP
|
||||
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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
EQMP
|
||||
|
||||
{
|
||||
.name = "query-iothreads",
|
||||
.args_type = "",
|
||||
.mhandler.cmd_new = qmp_marshal_input_query_iothreads,
|
||||
},
|
||||
|
||||
SQMP
|
||||
query-pci
|
||||
---------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue