Received: from eggs.gnu.org ([2001:4830:134:3::10]:36871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR2ED-0006Y1-Hl for qemu-devel@nongnu.org; Tue, 01 Oct 2013 11:51:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR2E7-0002WI-DK for qemu-devel@nongnu.org; Tue, 01 Oct 2013 11:51:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR2E7-0002W4-5t for qemu-devel@nongnu.org; Tue, 01 Oct 2013 11:51:07 -0400 Date: Tue, 1 Oct 2013 17:50:32 +0200 From: Kevin Wolf Message-ID: <20131001155032.GE3143@dhcp-200-207.str.redhat.com> References: <1380633619-12213-1-git-send-email-kwolf@redhat.com> <524AED13.9030000@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <524AED13.9030000@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 00/17] blockdev-add QMP command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: benoit.canet@irqsave.net, armbru@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com, stefanha@redhat.com, xiawenc@linux.vnet.ibm.com Am 01.10.2013 um 17:41 hat Eric Blake geschrieben: > On 10/01/2013 07:20 AM, Kevin Wolf wrote: > > This series adds a blockdev-add QMP command and a row of cleanup patches to > > separate legacy -drive/drive_add behaviour from blockdev_init() to the wrapper > > function drive_init(). > > > > v2: > > > > - Removed I/O throttling and copy-on-read options from the schema: Both are > > candidates for becoming block filters instead. For the time being, you can > > use the existing QMP commands in order to enable I/O throttling on a device > > created with blockdev-add in a second step. > > Tolerable as a stop-gap; but doesn't that mean that there is a window > where throttling is not active? Anything that can restrict block > operations must ultimately be specified atomically up front to avoid a > non-deterministic burst during the race window. But in the interest of > incremental improvements, I can live with the approach used here, while > still waiting for throttling to be implemented as a true filter device. Immediately after blockdev-add, the block device is still completely unused. You can set the throttling options before you do the corresponding device-add or block job command or whatever you're planning to do with the device. Kevin