diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-06-23 16:39:06 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2017-01-16 09:19:50 +0100 |
commit | 14df1ea1683a52decbe4664fba6a8aa139536f27 (patch) | |
tree | 95a63e3d3ab36ca681e693b933a33efc343bcbb8 | |
parent | 2ee7fea7ce0306e39fa4bfed122c3fa0acf0bb02 (diff) |
qmp-events: move 'VSERPORT_CHANGE' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | docs/qmp-events.txt | 18 | ||||
-rw-r--r-- | qapi/event.json | 7 |
2 files changed, 7 insertions, 18 deletions
diff --git a/docs/qmp-events.txt b/docs/qmp-events.txt index 6f42640d5f..59743b569e 100644 --- a/docs/qmp-events.txt +++ b/docs/qmp-events.txt @@ -49,21 +49,3 @@ Data: None. Example: {"timestamp": {"seconds": 1449669631, "microseconds": 239225}, "event": "MIGRATION_PASS", "data": {"pass": 2}} - -VSERPORT_CHANGE ---------------- - -Emitted when the guest opens or closes a virtio-serial port. - -Data: - -- "id": device identifier of the virtio-serial port (json-string) -- "open": true if the guest has opened the virtio-serial port (json-bool) - -Example: - -{ "event": "VSERPORT_CHANGE", - "data": { "id": "channel0", "open": true }, - "timestamp": { "seconds": 1401385907, "microseconds": 422329 } } - -Note: this event is rate-limited separately for each "id". diff --git a/qapi/event.json b/qapi/event.json index 5779d5d714..a9f974fa36 100644 --- a/qapi/event.json +++ b/qapi/event.json @@ -571,6 +571,13 @@ # @open: true if the guest has opened the virtio-serial port # # Since: 2.1 +# +# Example: +# +# <- { "event": "VSERPORT_CHANGE", +# "data": { "id": "channel0", "open": true }, +# "timestamp": { "seconds": 1401385907, "microseconds": 422329 } } +# ## { 'event': 'VSERPORT_CHANGE', 'data': { 'id': 'str', 'open': 'bool' } } |