From dc3dd0d2bed6edf3b60041f31200c674348168e9 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 27 Feb 2014 11:48:42 +0100 Subject: 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 Signed-off-by: Stefan Hajnoczi --- qapi-schema.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'qapi-schema.json') diff --git a/qapi-schema.json b/qapi-schema.json index f4f9439fe6..b68cd44ebd 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -882,6 +882,35 @@ ## { 'command': 'query-cpus', 'returns': ['CpuInfo'] } +## +# @IOThreadInfo: +# +# Information about an iothread +# +# @id: the identifier of the iothread +# +# @thread-id: ID of the underlying host thread +# +# Since: 2.0 +## +{ 'type': 'IOThreadInfo', + 'data': {'id': 'str', 'thread-id': 'int'} } + +## +# @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. +# +# Returns: a list of @IOThreadInfo for each iothread +# +# Since: 2.0 +## +{ 'command': 'query-iothreads', 'returns': ['IOThreadInfo'] } + ## # @BlockDeviceInfo: # -- cgit v1.2.3-55-g7522