Received: from eggs.gnu.org ([2001:4830:134:3::10]:38026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0ER-0001Fr-M6 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:23:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn0EO-0003e8-WF for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:23:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn0EO-0003ds-Ml for qemu-devel@nongnu.org; Thu, 22 Sep 2016 05:23:48 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 40A0F33885E for ; Thu, 22 Sep 2016 09:23:48 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Sep 2016 13:22:43 +0400 Message-Id: <20160922092305.2895-9-marcandre.lureau@redhat.com> In-Reply-To: <20160922092305.2895-1-marcandre.lureau@redhat.com> References: <20160922092305.2895-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 08/30] qmp-commands: move 'human-monitor-command' 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 | 33 --------------------------------- qapi-schema.json | 17 ++++++++++++++--- 2 files changed, 14 insertions(+), 36 deletions(-) diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt index 6d43415..c3b813f 100644 --- a/docs/qmp-commands.txt +++ b/docs/qmp-commands.txt @@ -1212,39 +1212,6 @@ Example: =20 Note: This command must be issued before issuing any other command. =20 -human-monitor-command ---------------------- - -Execute a Human Monitor command. - -Arguments: - -- command-line: the command name and its arguments, just like the - Human Monitor's shell (json-string) -- cpu-index: select the CPU number to be used by commands which access C= PU - data, like 'info registers'. The Monitor selects CPU 0 if t= his - argument is not provided (json-int, optional) - -Example: - --> { "execute": "human-monitor-command", "arguments": { "command-line": = "info kvm" } } -<- { "return": "kvm support: enabled\r\n" } - -Notes: - -(1) The Human Monitor is NOT an stable interface, this means that comman= d - names, arguments and responses can change or be removed at ANY time. - Applications that rely on long term stability guarantees should NOT - use this command - -(2) Limitations: - - o This command is stateless, this means that commands that depend - on state information (such as getfd) might not work - - o Commands that prompt the user for data (eg. 'cont' when the block - device is encrypted) don't currently work - 3. Query Commands =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 diff --git a/qapi-schema.json b/qapi-schema.json index b2d00dc..5142818 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -2464,15 +2464,26 @@ # Since: 0.14.0 # # Notes: This command only exists as a stop-gap. Its use is highly -# discouraged. The semantics of this command are not guaranteed. +# discouraged. The semantics of this command are not +# guaranteed: this means that command names, arguments and +# responses can change or be removed at ANY time. Applications +# that rely on long term stability guarantees should NOT +# use this command. # # Known limitations: # # o This command is stateless, this means that commands that depe= nd # on state information (such as getfd) might not work # -# o Commands that prompt the user for data (eg. 'cont' when the bl= ock -# device is encrypted) don't currently work +# o Commands that prompt the user for data (eg. 'cont' when the b= lock +# device is encrypted) don't currently work +# +# Example: +# +# -> { "execute": "human-monitor-command", +# "arguments": { "command-line": "info kvm" } } +# <- { "return": "kvm support: enabled\r\n" } +# ## { 'command': 'human-monitor-command', 'data': {'command-line': 'str', '*cpu-index': 'int'}, --=20 2.10.0