Received: from eggs.gnu.org ([2001:4830:134:3::10]:59778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMdGZ-0001Cr-1v for qemu-devel@nongnu.org; Wed, 27 Aug 2014 09:28:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMdGS-0004UI-Tb for qemu-devel@nongnu.org; Wed, 27 Aug 2014 09:27:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMdGS-0004UA-Mw for qemu-devel@nongnu.org; Wed, 27 Aug 2014 09:27:52 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7RDRoRW003514 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 27 Aug 2014 09:27:51 -0400 From: Markus Armbruster References: <1409120576-5726-1-git-send-email-famz@redhat.com> <53FDD3C6.3050708@redhat.com> Date: Wed, 27 Aug 2014 15:27:48 +0200 In-Reply-To: <53FDD3C6.3050708@redhat.com> (Eric Blake's message of "Wed, 27 Aug 2014 06:49:10 -0600") Message-ID: <87r4026p0r.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] block: Introduce "null" driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , Fam Zheng , qemu-devel@nongnu.org, Stefan Hajnoczi Eric Blake writes: > On 08/27/2014 12:22 AM, 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. >> >> Signed-off-by: Fam Zheng >> --- >> block/Makefile.objs | 1 + >> block/null.c | 172 >> ++++++++++++++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 173 insertions(+) >> create mode 100644 block/null.c > > Worth also adding it to BlockdevOptions in qapi/block-core.json to allow > hotplug of this driver? (Not that libvirt will ever hotplug one, but I > really want to move towards being feature-complete on letting QMP drive > all block types) I'd support a policy of "no new block drivers outside QAPI".