[libvirt] [PATCH 1/2] qemu: expose qemu 1.3 add-fd monitor command

Stefan Berger stefanb at linux.vnet.ibm.com
Thu Jan 31 13:40:09 UTC 2013


On 01/30/2013 11:21 PM, Eric Blake wrote:
> 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.

ACK

    Stefan




More information about the libvir-list mailing list