qmp-events: move 'DEVICE_DELETED' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
9ba5cec9dd
commit
cdc94a1b3e
|
@ -30,24 +30,6 @@ Example:
|
||||||
|
|
||||||
Note: this event is rate-limited.
|
Note: this event is rate-limited.
|
||||||
|
|
||||||
DEVICE_DELETED
|
|
||||||
--------------
|
|
||||||
|
|
||||||
Emitted whenever the device removal completion is acknowledged
|
|
||||||
by the guest.
|
|
||||||
At this point, it's safe to reuse the specified device ID.
|
|
||||||
Device removal can be initiated by the guest or by HMP/QMP commands.
|
|
||||||
|
|
||||||
Data:
|
|
||||||
|
|
||||||
- "device": device name (json-string, optional)
|
|
||||||
- "path": device path (json-string)
|
|
||||||
|
|
||||||
{ "event": "DEVICE_DELETED",
|
|
||||||
"data": { "device": "virtio-net-pci-0",
|
|
||||||
"path": "/machine/peripheral/virtio-net-pci-0" },
|
|
||||||
"timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
|
|
||||||
|
|
||||||
DUMP_COMPLETED
|
DUMP_COMPLETED
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|
|
@ -191,6 +191,14 @@
|
||||||
# @path: device path
|
# @path: device path
|
||||||
#
|
#
|
||||||
# Since: 1.5
|
# Since: 1.5
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# <- { "event": "DEVICE_DELETED",
|
||||||
|
# "data": { "device": "virtio-net-pci-0",
|
||||||
|
# "path": "/machine/peripheral/virtio-net-pci-0" },
|
||||||
|
# "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'event': 'DEVICE_DELETED',
|
{ 'event': 'DEVICE_DELETED',
|
||||||
'data': { '*device': 'str', 'path': 'str' } }
|
'data': { '*device': 'str', 'path': 'str' } }
|
||||||
|
|
Loading…
Reference in New Issue