• E
    blockjob: return appropriate event and info · edecd45c
    Eric Blake 提交于
    Handle the new type of block copy event and info.  Of course,
    this patch does nothing until a later patch actually allows the
    creation/abort of a block copy job.
    
    * include/libvirt/libvirt.h.in (VIR_DOMAIN_BLOCK_JOB_READY): New
    block job status.
    * src/libvirt.c (virDomainBlockRebase): Document the event.
    * src/qemu/qemu_monitor_json.c (eventHandlers): New event.
    (qemuMonitorJSONHandleBlockJobReady): New function.
    (qemuMonitorJSONGetBlockJobInfoOne): Translate new job type.
    (qemuMonitorJSONHandleBlockJobImpl): Handle new event and job type.
    * src/qemu/qemu_process.c (qemuProcessHandleBlockJob): Recognize
    the event to minimize snooping.
    * src/qemu/qemu_driver.c (qemuDomainBlockJobImpl): Snoop a successful
    info query to save effort on a pivot request.
    edecd45c
qemu_process.c 138.5 KB