]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: chardev: Extract more information about character devices
authorPeter Krempa <pkrempa@redhat.com>
Thu, 13 Nov 2014 18:29:14 +0000 (19:29 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 Nov 2014 07:58:30 +0000 (08:58 +0100)
commit4d7eb903119ef61b58ced29432f4933b372e00ab
tree24313de4cc3c8ae9a3ce29ae5cb31abc2b84040d
parent42874fa45f9fab99212d0ba3f66cf4671ddb0a30
qemu: chardev: Extract more information about character devices

Improve the monitor function to also retrieve the guest state of
character device (if provided) so that we can refresh the state of
virtio-serial channels and perhaps react to changes in the state in
future patches.

This patch changes the returned data from qemuMonitorGetChardevInfo to
return a structure containing the pty path and the state for all the
character devices.

The change to the testsuite makes sure that the data is parsed
correctly.
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_text.c
src/qemu/qemu_process.c
tests/qemumonitorjsontest.c