Re: [Qemu-devel] [PATCH v3] block: Switch to host monotonic clock for IO throttling

2015-03-25 Thread Fam Zheng
On Wed, 03/25 08:16, Alberto Garcia wrote: > On Wed, Mar 25, 2015 at 10:42:32AM +0800, Fam Zheng wrote: > > > Block jobs are confusingly inconsistent between with and without > > throttling: if user sets a bps limit, starts a block job, then stops > > vm, the block job will not make any progress;

Re: [Qemu-devel] [PATCH v3] block: Switch to host monotonic clock for IO throttling

2015-03-25 Thread Alberto Garcia
On Wed, Mar 25, 2015 at 10:42:32AM +0800, Fam Zheng wrote: > Block jobs are confusingly inconsistent between with and without > throttling: if user sets a bps limit, starts a block job, then stops > vm, the block job will not make any progress; in contrary, if user > unsets the bps limit, the bloc

[Qemu-devel] [PATCH v3] block: Switch to host monotonic clock for IO throttling

2015-03-24 Thread Fam Zheng
Currently, throttle timers won't make any progress when VCPU is not running, which would stall the request queue in utils, qtest, vm suspending, and live migration without special handling. Block jobs are confusingly inconsistent between with and without throttling: if user sets a bps limit, start