• E
    qemu: expose qemu 1.3 add-fd monitor command · 7b2c5893
    Eric Blake 提交于
    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.
    7b2c5893
qemu_monitor_json.c 130.2 KB