Re: [libvirt] [RFC PATCH] threshold: new API virDomainBlockSetWriteThreshold

2015-05-26 Thread Peter Krempa
On Tue, May 26, 2015 at 08:22:23 -0600, Eric Blake wrote: > On 05/26/2015 04:25 AM, Daniel P. Berrange wrote: > > On Mon, May 25, 2015 at 11:11:14AM +0200, Peter Krempa wrote: > >> On Sat, May 23, 2015 at 21:45:56 -0600, Eric Blake wrote: ... > >> Double? Your last proposal used unsigned long lon

Re: [libvirt] [RFC PATCH] threshold: new API virDomainBlockSetWriteThreshold

2015-05-26 Thread Eric Blake
On 05/26/2015 04:25 AM, Daniel P. Berrange wrote: > On Mon, May 25, 2015 at 11:11:14AM +0200, Peter Krempa wrote: >> On Sat, May 23, 2015 at 21:45:56 -0600, Eric Blake wrote: >>> qemu 2.3 added a new QMP command block-set-write-threshold, >>> which allows callers to get an interrupt when a file hit

Re: [libvirt] [RFC PATCH] threshold: new API virDomainBlockSetWriteThreshold

2015-05-26 Thread Daniel P. Berrange
On Mon, May 25, 2015 at 11:11:14AM +0200, Peter Krempa wrote: > On Sat, May 23, 2015 at 21:45:56 -0600, Eric Blake wrote: > > qemu 2.3 added a new QMP command block-set-write-threshold, > > which allows callers to get an interrupt when a file hits a > > write threshold, rather than the current appr

Re: [libvirt] [RFC PATCH] threshold: new API virDomainBlockSetWriteThreshold

2015-05-25 Thread Peter Krempa
On Sat, May 23, 2015 at 21:45:56 -0600, Eric Blake wrote: > qemu 2.3 added a new QMP command block-set-write-threshold, > which allows callers to get an interrupt when a file hits a > write threshold, rather than the current approach of repeatedly > polling for file allocation. This patch prepares

[libvirt] [RFC PATCH] threshold: new API virDomainBlockSetWriteThreshold

2015-05-23 Thread Eric Blake
qemu 2.3 added a new QMP command block-set-write-threshold, which allows callers to get an interrupt when a file hits a write threshold, rather than the current approach of repeatedly polling for file allocation. This patch prepares the API for callers to register to receive the event, as well as