summaryrefslogtreecommitdiffstats
path: root/qapi
diff options
context:
space:
mode:
authorPaolo Bonzini2018-02-28 19:01:40 +0100
committerPaolo Bonzini2018-06-28 19:05:35 +0200
commite2c81a45101fdddfd47477a1805806f2c76639bf (patch)
tree2b54aaa4ca86943ac6036c12f6971dcbcf9f06e2 /qapi
parentpr-manager: add query-pr-managers QMP command (diff)
downloadqemu-e2c81a45101fdddfd47477a1805806f2c76639bf.tar.gz
qemu-e2c81a45101fdddfd47477a1805806f2c76639bf.tar.xz
qemu-e2c81a45101fdddfd47477a1805806f2c76639bf.zip
pr-manager-helper: report event on connection/disconnection
Let management know if there were any problems communicating with qemu-pr-helper. The event is edge-triggered, and is sent every time the connection status of the pr-manager-helper object changes. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/block.json24
1 files changed, 24 insertions, 0 deletions
diff --git a/qapi/block.json b/qapi/block.json
index 8765c29a06..11f01f28ef 100644
--- a/qapi/block.json
+++ b/qapi/block.json
@@ -359,6 +359,30 @@
'data': { 'device': 'str', 'id': 'str', 'tray-open': 'bool' } }
##
+# @PR_MANAGER_STATUS_CHANGED:
+#
+# Emitted whenever the connected status of a persistent reservation
+# manager changes.
+#
+# @id: The id of the PR manager object
+#
+# @connected: true if the PR manager is connected to a backend
+#
+# Since: 3.0
+#
+# Example:
+#
+# <- { "event": "PR_MANAGER_STATUS_CHANGED",
+# "data": { "id": "pr-helper0",
+# "connected": true
+# },
+# "timestamp": { "seconds": 1519840375, "microseconds": 450486 } }
+#
+##
+{ 'event': 'PR_MANAGER_STATUS_CHANGED',
+ 'data': { 'id': 'str', 'connected': 'bool' } }
+
+##
# @QuorumOpType:
#
# An enumeration of the quorum operation types