[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 27/38] qmp: add new event "command-dropped"
From: |
Eric Blake |
Subject: |
[Qemu-devel] [PULL 27/38] qmp: add new event "command-dropped" |
Date: |
Fri, 16 Mar 2018 09:04:57 -0500 |
This event will be emitted if one QMP command is dropped. Also,
declare an enum for the reasons.
Reviewed-by: Fam Zheng <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Peter Xu <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
[eblake: rebase to master]
Signed-off-by: Eric Blake <address@hidden>
---
qapi/misc.json | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/qapi/misc.json b/qapi/misc.json
index 564216ae975..1545e416203 100644
--- a/qapi/misc.json
+++ b/qapi/misc.json
@@ -3390,3 +3390,40 @@
#
##
{ 'command': 'query-sev-capabilities', 'returns': 'SevCapability' }
+
+##
+# @CommandDropReason:
+#
+# Reasons that caused one command to be dropped.
+#
+# @queue-full: the command queue is full. This can only occur when
+# the client sends a new non-oob command before the
+# response to the previous non-oob command has been
+# received.
+#
+# Since: 2.12
+##
+{ 'enum': 'CommandDropReason',
+ 'data': [ 'queue-full' ] }
+
+##
+# @COMMAND_DROPPED:
+#
+# Emitted when a command is dropped due to some reason. Commands can
+# only be dropped when the oob capability is enabled.
+#
+# @id: The dropped command's "id" field.
+#
+# @reason: The reason why the command is dropped.
+#
+# Since: 2.12
+#
+# Example:
+#
+# { "event": "COMMAND_DROPPED",
+# "data": {"result": {"id": "libvirt-102",
+# "reason": "queue-full" } } }
+#
+##
+{ 'event': 'COMMAND_DROPPED' ,
+ 'data': { 'id': 'any', 'reason': 'CommandDropReason' } }
--
2.14.3
- [Qemu-devel] [PULL 00/38] QAPI patches for 2018-03-12, 2.12 softfreeze, Eric Blake, 2018/03/16
- [Qemu-devel] [PULL 12/38] chardev: tcp: postpone TLS work until machine done, Eric Blake, 2018/03/16
- [Qemu-devel] [PULL 27/38] qmp: add new event "command-dropped",
Eric Blake <=
- [Qemu-devel] [PULL 07/38] qapi: Replace qobject_to_X(o) by qobject_to(X, o), Eric Blake, 2018/03/16
- [Qemu-devel] [PULL 38/38] qapi: Pass '-u' when doing non-silent diff, Eric Blake, 2018/03/16
- Re: [Qemu-devel] [PULL 00/38] QAPI patches for 2018-03-12, 2.12 softfreeze, Peter Maydell, 2018/03/17