Skip to contentSkip to conversation

qmp: document input-send-event detail

PATCH In review Amos Kong 2 participants 2 messages Nov 24, 2014

lore
Share & tools
lore

Amos Kong

author
#0 lore raw

PATCH 1/1 qmp: document input-send-event detail

This patch documents what exactly input-send-event is supposed to do.

---
 qapi-schema.json | 11 +++++++++++
 1 file changed, 11 insertions(+)
qapi-schema.json +11 -0
index d0926d9..9aa19bc 100644
@@ -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.
 #
Signature · 1 line
1.9.3
#1 lore raw
Quoted 20 lines · Amos Kong

This patch documents what exactly input-send-event is supposed to do.

---
 qapi-schema.json | 11 +++++++++++
 1 file changed, 11 insertions(+)
qapi-schema.json +5 -0
index d0926d9..9aa19bc 100644
@@ -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.

qapi-schema.json line 3266

Quoted 10 lines
qapi-schema.json +6 -0
+#
 # @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.
 #

Competes with Gerd's "[PATCH] input: improve docs for input-send-event qmp command".