[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC v6 17/27] qmp: add new event "command-dropped"
From: |
Peter Xu |
Subject: |
[Qemu-devel] [RFC v6 17/27] qmp: add new event "command-dropped" |
Date: |
Tue, 19 Dec 2017 16:45:47 +0800 |
This event will be emitted if one QMP command is dropped. Along,
declare an enum for the reasons.
Signed-off-by: Peter Xu <address@hidden>
---
qapi-schema.json | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/qapi-schema.json b/qapi-schema.json
index 531fd4c0db..447ab25572 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3222,3 +3222,40 @@
# Since: 2.11
##
{ 'command': 'watchdog-set-action', 'data' : {'action': 'WatchdogAction'} }
+
+##
+# @CommandDropReason:
+#
+# Reasons that caused one command to be dropped.
+#
+# @queue-full: the queue of command 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
- Re: [Qemu-devel] [RFC v6 12/27] qmp: negotiate QMP capabilities, (continued)
- [Qemu-devel] [RFC v6 13/27] monitor: introduce monitor_qmp_respond(), Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 14/27] monitor: let suspend_cnt be thread safe, Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 15/27] monitor: let suspend/resume work even with QMPs, Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 16/27] monitor: separate QMP parser and dispatcher, Peter Xu, 2017/12/19
- [Qemu-devel] [RFC v6 17/27] qmp: add new event "command-dropped",
Peter Xu <=
- [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Peter Xu, 2017/12/19
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Fam Zheng, 2017/12/21
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Peter Xu, 2017/12/25
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Fam Zheng, 2017/12/25
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Peter Xu, 2017/12/25
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Fam Zheng, 2017/12/25
- Re: [Qemu-devel] [RFC v6 18/27] monitor: send event when command queue full, Peter Xu, 2017/12/25
[Qemu-devel] [RFC v6 19/27] qapi: introduce new cmd option "allow-oob", Peter Xu, 2017/12/19