]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: expose qemu 1.3 add-fd monitor command
authorEric Blake <eblake@redhat.com>
Thu, 31 Jan 2013 00:18:44 +0000 (17:18 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 31 Jan 2013 17:23:28 +0000 (10:23 -0700)
commit7b2c5893c24108afe6076593ab46c6eb7226a704
tree3cfcdc1cc54c94584ee70b29c1b232b55bd18f8b
parent949ebc30226f17fcd0916c9e4ab1a909fd117566
qemu: expose qemu 1.3 add-fd monitor command

Add entry points for calling the qemu 'add-fd' and 'remove-fd'
monitor commands.  There is no entry point for 'query-fdsets';
the assumption is that a developer can use
 virsh qemu-monitor-command domain '{"execute":"query-fdsets"}'
when debugging issues, and that meanwhile, libvirt is responsible
enough to remember what fds it associated with what fdsets.
Likewise, on the 'add-fd' command, it is assumed that libvirt
will always pass a set id, rather than letting qemu autogenerate
the next available id number.

* src/qemu/qemu_monitor.c (qemuMonitorAddFd, qemuMonitorRemoveFd):
New functions.
* src/qemu/qemu_monitor.h (qemuMonitorAddFd, qemuMonitorRemoveFd):
New prototypes.
* src/qemu/qemu_monitor_json.c (qemuMonitorJSONAddFd)
(qemuMonitorJSONRemoveFd): New functions.
* src/qemu/qemu_monitor_json.h (qemuMonitorJSONAddFd)
(qemuMonitorJSONRemoveFd): New prototypes.
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h