summaryrefslogtreecommitdiff
path: root/qapi
diff options
context:
space:
mode:
authorZhu Guihua <zhugh.fnst@cn.fujitsu.com>2015-04-27 16:47:22 +0800
committerMichael S. Tsirkin <mst@redhat.com>2015-04-27 21:09:07 +0200
commitbc09e06113e79e5d70cf2b37015a26f2102cc03e (patch)
treea4799b52359aa5e54b5ddcfd3881cec0b4ba40e5 /qapi
parentc06b2ffb02bfcc642c67300d2c4dffd5aa54932b (diff)
downloadqemu-bc09e06113e79e5d70cf2b37015a26f2102cc03e.tar.gz
qemu-bc09e06113e79e5d70cf2b37015a26f2102cc03e.tar.bz2
qemu-bc09e06113e79e5d70cf2b37015a26f2102cc03e.zip
qmp-event: add event notification for memory hot unplug error
When memory hot unplug fails, this patch adds support to send QMP event to notify mgmt about this failure. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r--qapi/event.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/qapi/event.json b/qapi/event.json
index c51dc491e0..378dda572a 100644
--- a/qapi/event.json
+++ b/qapi/event.json
@@ -330,3 +330,17 @@
##
{ 'event': 'VSERPORT_CHANGE',
'data': { 'id': 'str', 'open': 'bool' } }
+
+##
+# @MEM_UNPLUG_ERROR
+#
+# Emitted when memory hot unplug error occurs.
+#
+# @device: device name
+#
+# @msg: Informative message
+#
+# Since: 2.4
+##
+{ 'event': 'MEM_UNPLUG_ERROR',
+ 'data': { 'device': 'str', 'msg': 'str' } }