char: report frontend open/closed state in 'query-chardev'
commit32a97ea1711f43388e178b7c43e02143a61e47ee
authorLaszlo Ersek <lersek@redhat.com>
Thu, 26 Jun 2014 15:50:03 +0000 (26 17:50 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Jun 2014 13:34:00 +0000 (27 09:34 -0400)
treeb257cd91af8d7f95af7b736082c6d1be6f314b25
parente2ae6159de2482ee5e22532301eb7f2795828d07
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>
qapi-schema.json
qemu-char.c
qmp-commands.hx