Re: [Qemu-devel] block-stream/drive-mirror and default bandwidth

2012-04-18 Thread Stefan Hajnoczi
On Tue, Apr 17, 2012 at 1:14 PM, Eric Blake wrote: > On 04/17/2012 03:20 AM, Stefan Hajnoczi wrote: >> I think it's cleanest to support block-job-set-speed even when no job >> is running.  The speed will be used as the default value when a job is >> started.  This poses the question of what happen

Re: [Qemu-devel] block-stream/drive-mirror and default bandwidth

2012-04-17 Thread Eric Blake
On 04/17/2012 03:20 AM, Stefan Hajnoczi wrote: > I think it's cleanest to support block-job-set-speed even when no job > is running. The speed will be used as the default value when a job is > started. This poses the question of what happens if the job does not > do throttling or cannot support t

Re: [Qemu-devel] block-stream/drive-mirror and default bandwidth

2012-04-17 Thread Stefan Hajnoczi
On Tue, Apr 17, 2012 at 8:53 AM, Paolo Bonzini wrote: > Il 17/04/2012 04:50, Eric Blake ha scritto: >> Libvirt found out that we have a pretty nasty data race between >> block-stream and block-job-set-speed.  If a user wants to throttle a >> job, they cannot request the throttling until after the

Re: [Qemu-devel] block-stream/drive-mirror and default bandwidth

2012-04-17 Thread Paolo Bonzini
Il 17/04/2012 04:50, Eric Blake ha scritto: > Libvirt found out that we have a pretty nasty data race between > block-stream and block-job-set-speed. If a user wants to throttle a > job, they cannot request the throttling until after the job has been > started (thanks to the DeviceNotActive error

[Qemu-devel] block-stream/drive-mirror and default bandwidth

2012-04-16 Thread Eric Blake
Libvirt found out that we have a pretty nasty data race between block-stream and block-job-set-speed. If a user wants to throttle a job, they cannot request the throttling until after the job has been started (thanks to the DeviceNotActive error of block-job-set-speed), but by the time you actuall