From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN86N-0005AC-JI for qemu-devel@nongnu.org; Thu, 28 Aug 2014 18:23:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XN86I-0000tb-LF for qemu-devel@nongnu.org; Thu, 28 Aug 2014 18:23:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XN86I-0000tN-Dg for qemu-devel@nongnu.org; Thu, 28 Aug 2014 18:23:26 -0400 Message-ID: <53FFABDB.2000609@redhat.com> Date: Thu, 28 Aug 2014 16:23:23 -0600 From: Eric Blake MIME-Version: 1.0 References: <1409205191-11406-1-git-send-email-famz@redhat.com> In-Reply-To: <1409205191-11406-1-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="65gDJBhhT07xKcqfPNOC7kfxtmuqxfAcv" Subject: Re: [Qemu-devel] [PATCH v3] block: Introduce "null" driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , benoit.canet@irqsave.net, armbru@redhat.com, Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --65gDJBhhT07xKcqfPNOC7kfxtmuqxfAcv Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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. >=20 > Use null:// for AIO version, and null-co:// for coroutine version. >=20 > Signed-off-by: Fam Zheng >=20 > --- > +++ 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', 'quor= um' ] } > + 'qcow2', 'qed', 'raw', 'vdi', 'vhdx', 'vmdk', 'vpc', 'quor= um', > + '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. > =20 > ## > # @BlockdevOptionsBase > @@ -1203,6 +1204,19 @@ > 'data': { 'filename': 'str' } } > =20 > ## > +# @BlockdevOptionsNull > +# > +# Driver specific block device options for the null backend. > +# > +# @size: size of the device in bytes. missing an #optional marker > +# > +# Since: 2.2 > +## > +{ 'type': 'BlockdevOptionsNull', > + 'base': 'BlockdevOptionsFile', > + 'data': { '*size': 'int' } } > + > +## > # @BlockdevOptionsVVFAT > # > # Driver specific block device options for the vvfat protocol. > @@ -1484,7 +1498,8 @@ > 'vhdx': 'BlockdevOptionsGenericFormat', > 'vmdk': 'BlockdevOptionsGenericCOWFormat', > 'vpc': 'BlockdevOptionsGenericFormat', > - 'quorum': 'BlockdevOptionsQuorum' > + 'quorum': 'BlockdevOptionsQuorum', > + 'null': 'BlockdevOptionsNull' > } } > =20 > ## >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --65gDJBhhT07xKcqfPNOC7kfxtmuqxfAcv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJT/6vbAAoJEKeha0olJ0NqrmMIAJY3K96OnVgmfQgar0F3VZM3 Y5mvwCiSEDSgX9HM6F8k4cQEEqZM1qII5sK3WodNGSWbEPP7mhJUdgkysQMe/izd f2B3vw7aK4r5X7OpG0gqU0UXUnSlYzKkL2SKxVRgAovxlVdUJhtbLxEPb78wWxPS WmTnzkT3HVKlFzWoS0kszv7Jsq6X1aAASNbAJdzq+GUrdKsROZuuIeoBB++vfYdc UNjrqjlvMeRNsj9/oQLr2imSO5axuGwUpLomwB5INrfLYxf11Da5P/Wh2xB3SaJ1 zWFmAFCBY7ojqeLKvZJa0YWPmYzNboWa+gO8Y0NRHA6chtoNL6Wo5MKNmLJiyJ0= =fa7K -----END PGP SIGNATURE----- --65gDJBhhT07xKcqfPNOC7kfxtmuqxfAcv--