From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNASw-000370-21 for qemu-devel@nongnu.org; Thu, 28 Aug 2014 20:55:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNASp-0004BI-Tz for qemu-devel@nongnu.org; Thu, 28 Aug 2014 20:54:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNASp-0004BE-NI for qemu-devel@nongnu.org; Thu, 28 Aug 2014 20:54:51 -0400 Date: Fri, 29 Aug 2014 08:55:00 +0800 From: Fam Zheng Message-ID: <20140829005500.GD4196@T430.redhat.com> References: <1409205191-11406-1-git-send-email-famz@redhat.com> <53FFABDB.2000609@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53FFABDB.2000609@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3] block: Introduce "null" driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , benoit.canet@irqsave.net, qemu-devel@nongnu.org, Stefan Hajnoczi , armbru@redhat.com On Thu, 08/28 16:23, Eric Blake wrote: > On 08/27/2014 11:53 PM, Fam Zheng wrote: > > This is an analogue to Linux null_blk. It can be used for testing block > > device emulation and general block layer functionalities such as > > coroutines and throttling, where disk IO is not necessary or wanted. > > > > Use null:// for AIO version, and null-co:// for coroutine version. > > > > Signed-off-by: Fam Zheng > > > > --- > > > +++ b/qapi/block-core.json > > @@ -1150,7 +1150,8 @@ > > 'data': [ 'archipelago', 'file', 'host_device', 'host_cdrom', 'host_floppy', > > 'http', 'https', 'ftp', 'ftps', 'tftp', 'vvfat', 'blkdebug', > > 'blkverify', 'bochs', 'cloop', 'cow', 'dmg', 'parallels', 'qcow', > > - 'qcow2', 'qed', 'raw', 'vdi', 'vhdx', 'vmdk', 'vpc', 'quorum' ] } > > + 'qcow2', 'qed', 'raw', 'vdi', 'vhdx', 'vmdk', 'vpc', 'quorum', > > + 'null' ] } > > As mentioned elsewhere, you probably want 'null' AND 'null-co'. Bummer > that this list is mostly alphabetical, but that 'quorum' and 'null' are > out of order. I'll add null-co to the list. But this list is a bit far from alphabetical: archipelago, ..., vvfat, blkdebug,... > > > > > ## > > # @BlockdevOptionsBase > > @@ -1203,6 +1204,19 @@ > > 'data': { 'filename': 'str' } } > > > > ## > > +# @BlockdevOptionsNull > > +# > > +# Driver specific block device options for the null backend. > > +# > > +# @size: size of the device in bytes. > > missing an #optional marker Will add. Thanks, Fam