diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2013-03-11 15:11:04 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-03-26 21:02:16 +0200 |
commit | 15054fce2df8592dec70bba23faf126f0f372f81 (patch) | |
tree | 0892b7ef87f322fc7c80d1c7853eb19e5ffa85e5 /QMP | |
parent | e998fa8df828ef68ea540a12917d10b4d335c1dd (diff) | |
download | qemu-15054fce2df8592dec70bba23faf126f0f372f81.zip qemu-15054fce2df8592dec70bba23faf126f0f372f81.tar.gz qemu-15054fce2df8592dec70bba23faf126f0f372f81.tar.bz2 |
qmp: add path to device_deleted event
Add QOM path to device deleted event. It now becomes useful to report
it for devices which don't have an ID assigned.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'QMP')
-rw-r--r-- | QMP/qmp-events.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index 24cf3e8..dcc826d 100644 --- a/QMP/qmp-events.txt +++ b/QMP/qmp-events.txt @@ -147,9 +147,11 @@ 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" }, + "data": { "device": "virtio-net-pci-0", + "path": "/machine/peripheral/virtio-net-pci-0" }, "timestamp": { "seconds": 1265044230, "microseconds": 450486 } } DEVICE_TRAY_MOVED |