]> git.proxmox.com Git - mirror_qemu.git/blame - docs/qmp-events.txt
qmp-events: move 'ACPI_DEVICE_OST' doc to schema
[mirror_qemu.git] / docs / qmp-events.txt
CommitLineData
dfab4892
LC
1 QEMU Machine Protocol Events
2 ============================
3
dfab4892
LC
4BALLOON_CHANGE
5--------------
6
7Emitted when the guest changes the actual BALLOON level. This
8value is equivalent to the 'actual' field return by the
9'query-balloon' command
10
11Data:
12
13- "actual": actual level of the guest memory balloon in bytes (json-number)
14
15Example:
16
17{ "event": "BALLOON_CHANGE",
18 "data": { "actual": 944766976 },
19 "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
20
7f1e7b23
MA
21Note: this event is rate-limited.
22
d42a0d14
PX
23DUMP_COMPLETED
24--------------
25
26Emitted when the guest has finished one memory dump.
27
28Data:
29
30- "result": DumpQueryResult type described in qapi-schema.json
31- "error": Error message when dump failed. This is only a
32 human-readable string provided when dump failed. It should not be
33 parsed in any way (json-string, optional)
34
35Example:
36
37{ "event": "DUMP_COMPLETED",
38 "data": {"result": {"total": 1090650112, "status": "completed",
39 "completed": 1090650112} } }
40
dfab4892
LC
41GUEST_PANICKED
42--------------
43
44Emitted when guest OS panic is detected.
45
46Data:
47
48- "action": Action that has been taken (json-string, currently always "pause").
49
50Example:
51
52{ "event": "GUEST_PANICKED",
53 "data": { "action": "pause" } }
54
777abdfe 55MEM_UNPLUG_ERROR
bc09e061
ZG
56--------------------
57Emitted when memory hot unplug error occurs.
58
59Data:
60
61- "device": device name (json-string)
62- "msg": Informative message (e.g., reason for the error) (json-string)
63
64Example:
65
777abdfe 66{ "event": "MEM_UNPLUG_ERROR"
bc09e061
ZG
67 "data": { "device": "dimm1",
68 "msg": "acpi: device unplug for unsupported device"
69 },
70 "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
71
dfab4892
LC
72QUORUM_FAILURE
73--------------
74
75Emitted by the Quorum block driver if it fails to establish a quorum.
76
77Data:
78
4e855baa
BC
79- "reference": device name if defined else node name.
80- "sector-num": Number of the first sector of the failed read operation.
81- "sectors-count": Failed read operation sector count.
dfab4892
LC
82
83Example:
84
85{ "event": "QUORUM_FAILURE",
4e855baa 86 "data": { "reference": "usr1", "sector-num": 345435, "sectors-count": 5 },
dfab4892
LC
87 "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
88
7f1e7b23
MA
89Note: this event is rate-limited.
90
dfab4892
LC
91QUORUM_REPORT_BAD
92-----------------
93
94Emitted to report a corruption of a Quorum file.
95
96Data:
97
0ae053b7 98- "type": Quorum operation type
4e855baa
BC
99- "error": Error message (json-string, optional)
100 Only present on failure. This field contains a human-readable
101 error message. There are no semantics other than that the
102 block layer reported an error and clients should not try to
103 interpret the error string.
104- "node-name": The graph node name of the block driver state.
105- "sector-num": Number of the first sector of the failed read operation.
106- "sectors-count": Failed read operation sector count.
dfab4892
LC
107
108Example:
109
0ae053b7 110Read operation:
dfab4892 111{ "event": "QUORUM_REPORT_BAD",
0ae053b7
CX
112 "data": { "node-name": "node0", "sector-num": 345435, "sectors-count": 5,
113 "type": "read" },
dfab4892
LC
114 "timestamp": { "seconds": 1344522075, "microseconds": 745528 } }
115
0ae053b7
CX
116Flush operation:
117{ "event": "QUORUM_REPORT_BAD",
118 "data": { "node-name": "node0", "sector-num": 0, "sectors-count": 2097120,
119 "type": "flush", "error": "Broken pipe" },
120 "timestamp": { "seconds": 1456406829, "microseconds": 291763 } }
121
7f1e7b23
MA
122Note: this event is rate-limited.
123
4addcd4f
DDAG
124MIGRATION_PASS
125--------------
126
127Emitted from the source side of a migration at the start of each pass
128(when it syncs the dirty bitmap)
129
130Data: None.
131
132 - "pass": An incrementing count (starting at 1 on the first pass)
133
134Example:
135{"timestamp": {"seconds": 1449669631, "microseconds": 239225},
136 "event": "MIGRATION_PASS", "data": {"pass": 2}}
137
032badde
EB
138VSERPORT_CHANGE
139---------------
140
141Emitted when the guest opens or closes a virtio-serial port.
142
143Data:
144
145- "id": device identifier of the virtio-serial port (json-string)
146- "open": true if the guest has opened the virtio-serial port (json-bool)
147
148Example:
149
150{ "event": "VSERPORT_CHANGE",
151 "data": { "id": "channel0", "open": true },
152 "timestamp": { "seconds": 1401385907, "microseconds": 422329 } }
153
7f1e7b23 154Note: this event is rate-limited separately for each "id".