Re: [libvirt] [PATCH 2/6] qemu: virsh wrapper for qemu events

2014-02-11 Thread Daniel P. Berrange
On Fri, Jan 31, 2014 at 07:12:07PM -0700, Eric Blake wrote: Any new API deserves a good virsh wrapper :) qemu-monitor-event [domain] [event] [--pretty] [--loop] [--timeout number] It helps that we already have an event loop running in a dedicated thread, so a blocking read() on a

Re: [libvirt] [PATCH 2/6] qemu: virsh wrapper for qemu events

2014-02-11 Thread Eric Blake
On 02/11/2014 08:07 AM, Daniel P. Berrange wrote: On Fri, Jan 31, 2014 at 07:12:07PM -0700, Eric Blake wrote: Any new API deserves a good virsh wrapper :) qemu-monitor-event [domain] [event] [--pretty] [--loop] [--timeout number] * tools/virsh-domain.c (cmdQemuMonitorEvent): New

[libvirt] [PATCH 2/6] qemu: virsh wrapper for qemu events

2014-01-31 Thread Eric Blake
Any new API deserves a good virsh wrapper :) qemu-monitor-event [domain] [event] [--pretty] [--loop] [--timeout number] It helps that we already have an event loop running in a dedicated thread, so a blocking read() on a pipe-to-self is sufficient to handle all three means of ending the