[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/4] qapi/machine.json: add DEVICE_UNPLUG_ERROR QAPI event
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH 3/4] qapi/machine.json: add DEVICE_UNPLUG_ERROR QAPI event |
Date: |
Fri, 12 Mar 2021 17:07:39 -0300 |
At this moment we only provide one event to report a hotunplug error,
MEM_UNPLUG_ERROR. There will be other device types that are going to be
throwing unplug errors in the future though.
Instead of creating a (device_type)_UNPLUG_ERROR for each new device,
create a generic DEVICE_UNPLUG_ERROR event that can be used by all
unplug errors in the future.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
qapi/machine.json | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/qapi/machine.json b/qapi/machine.json
index 330189efe3..9b2c93aad3 100644
--- a/qapi/machine.json
+++ b/qapi/machine.json
@@ -1471,3 +1471,26 @@
##
{ 'event': 'MEM_UNPLUG_ERROR',
'data': { 'device': 'str', 'msg': 'str' } }
+
+##
+# @DEVICE_UNPLUG_ERROR:
+#
+# Emitted when a device hot unplug error occurs.
+#
+# @device: device name
+#
+# @msg: Informative message
+#
+# Since: 6.0
+#
+# Example:
+#
+# <- { "event": "DEVICE_UNPLUG_ERROR"
+# "data": { "device": "dimm1",
+# "msg": "Memory hotunplug rejected by the guest for device
dimm1"
+# },
+# "timestamp": { "seconds": 1615570772, "microseconds": 202844 } }
+#
+##
+{ 'event': 'DEVICE_UNPLUG_ERROR',
+ 'data': { 'device': 'str', 'msg': 'str' } }
\ No newline at end of file
--
2.29.2
- [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, Daniel Henrique Barboza, 2021/03/12
- [PATCH 1/4] qapi/qdev.json: add DEVICE_NOT_DELETED event, Daniel Henrique Barboza, 2021/03/12
- [PATCH 2/4] spapr_drc.c: send DEVICE_NOT_DELETED event on unplug timeout, Daniel Henrique Barboza, 2021/03/12
- [PATCH 3/4] qapi/machine.json: add DEVICE_UNPLUG_ERROR QAPI event,
Daniel Henrique Barboza <=
- [PATCH 4/4] spapr.c: use DEVICE_UNPLUG_ERROR event in spapr_memory_unplug_rollback(), Daniel Henrique Barboza, 2021/03/12
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, David Gibson, 2021/03/22
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, Daniel Henrique Barboza, 2021/03/23
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, David Gibson, 2021/03/23
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, Daniel Henrique Barboza, 2021/03/24
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, David Gibson, 2021/03/24
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, Igor Mammedov, 2021/03/29
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, David Gibson, 2021/03/30
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, Igor Mammedov, 2021/03/31
- Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events, David Gibson, 2021/03/31