From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnN8-00057x-Uo for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnN5-0004eP-2Y for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnN4-0004eF-TG for qemu-devel@nongnu.org; Tue, 13 Sep 2016 09:03:31 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7A4F865728 for ; Tue, 13 Sep 2016 13:03:30 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 13 Sep 2016 17:01:59 +0400 Message-Id: <20160913130209.695-21-marcandre.lureau@redhat.com> In-Reply-To: <20160913130209.695-1-marcandre.lureau@redhat.com> References: <20160913130209.695-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 20/30] qmp-commands: move 'query-iothreads' doc to schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Signed-off-by: Marc-Andr=C3=A9 Lureau --- docs/qmp-commands.txt | 30 ------------------------------ qapi-schema.json | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 30 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 3f44375..bd0d6c1 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1929,36 +1929,6 @@ Example: ] } =20 -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 t= hread -of the process. - -Return a json-array. Each iothread is represented by a json-object, whic= h 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 --------- =20 diff --git a/qapi-schema.json b/qapi-schema.json index c1183d0..a7872c4 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1303,6 +1303,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'] } =20 --=20 2.10.0