aboutsummaryrefslogtreecommitdiff
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2014-06-26 17:50:03 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2014-06-27 09:34:00 -0400
commit32a97ea1711f43388e178b7c43e02143a61e47ee (patch)
treeb257cd91af8d7f95af7b736082c6d1be6f314b25 /qapi-schema.json
parente2ae6159de2482ee5e22532301eb7f2795828d07 (diff)
downloadqemu-32a97ea1711f43388e178b7c43e02143a61e47ee.zip
qemu-32a97ea1711f43388e178b7c43e02143a61e47ee.tar.gz
qemu-32a97ea1711f43388e178b7c43e02143a61e47ee.tar.bz2
char: report frontend open/closed state in 'query-chardev'
In addition to the on-line reporting added in the previous patch, allow libvirt to query frontend state independently of events. Libvirt's path to identify the guest agent channel it cares about differs between the event added in the previous patch and the QMP response field added here. The event identifies the frontend device, by "id". The 'query-chardev' QMP command identifies the backend device (again by "id"). The association is under libvirt's control. RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1080376 Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qapi-schema.json')
-rw-r--r--qapi-schema.json8
1 files changed, 7 insertions, 1 deletions
diff --git a/qapi-schema.json b/qapi-schema.json
index c68a17f..2284f0f 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -214,12 +214,18 @@
#
# @filename: the filename of the character device
#
+# @frontend-open: shows whether the frontend device attached to this backend
+# (eg. with the chardev=... option) is in open or closed state
+# (since 2.1)
+#
# Notes: @filename is encoded using the QEMU command line character device
# encoding. See the QEMU man page for details.
#
# Since: 0.14.0
##
-{ 'type': 'ChardevInfo', 'data': {'label': 'str', 'filename': 'str'} }
+{ 'type': 'ChardevInfo', 'data': {'label': 'str',
+ 'filename': 'str',
+ 'frontend-open': 'bool'} }
##
# @query-chardev: