From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xsuu7-0000S8-0J for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:46:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xsutz-0005eW-Hu for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:46:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xsutz-0005eJ-AG for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:46:07 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAOEk5NY010245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 24 Nov 2014 09:46:06 -0500 From: Amos Kong Date: Mon, 24 Nov 2014 22:46:11 +0800 Message-Id: <1416840371-27646-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [PATCH for-2.2] qmp: document input-send-event detail List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kraxel@redhat.com Cc: mtosatti@redhat.com, armbru@redhat.com, lcapitulino@redhat.com This patch documents what exactly input-send-event is supposed to do. Signed-off-by: Amos Kong --- qapi-schema.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index d0926d9..9aa19bc 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3249,7 +3249,18 @@ # # Send input event(s) to guest. # +# The VM must be running or suspended. +# +# Each event is sent to exactly one admissible input device. Such a +# device must exist. If multiple admissible devices can handle an +# event, which one gets it is unspecified, except as described below. +# # @console: #optional console to send event(s) to. +# If @console is missing, only devices that aren't associated +# with a console are admissible. +# If @console is specified, it must exist, and both devices +# associated with that console and devices not associated with a +# console are admissible, but the former takes precedence. # # @events: List of InputEvent union. # -- 1.9.3