From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbFJI-0001n6-NJ for qemu-devel@nongnu.org; Wed, 21 Nov 2012 13:46:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbFJH-0001z5-J3 for qemu-devel@nongnu.org; Wed, 21 Nov 2012 13:46:08 -0500 Received: from mail-ob0-f173.google.com ([209.85.214.173]:52688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbFJH-0001yw-ED for qemu-devel@nongnu.org; Wed, 21 Nov 2012 13:46:07 -0500 Received: by mail-ob0-f173.google.com with SMTP id x4so6925437obh.4 for ; Wed, 21 Nov 2012 10:46:06 -0800 (PST) Sender: fluxion Date: Wed, 21 Nov 2012 12:45:43 -0600 From: mdroth Message-ID: <20121121184543.GD16281@vm> References: <1353414712-27072-1-git-send-email-stefanha@redhat.com> <1353414712-27072-3-git-send-email-stefanha@redhat.com> <20121121181750.GC16281@vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2 2/8] configure: add CONFIG_VIRTIO_BLK_DATA_PLANE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Anthony Liguori , "Michael S. Tsirkin" , qemu-devel , Khoa Huynh , Stefan Hajnoczi , Paolo Bonzini , Asias He On Wed, Nov 21, 2012 at 07:29:21PM +0100, Stefan Hajnoczi wrote: > On Wed, Nov 21, 2012 at 7:17 PM, mdroth wrote: > > On Tue, Nov 20, 2012 at 01:31:46PM +0100, Stefan Hajnoczi wrote: > >> @@ -2233,6 +2238,17 @@ EOF > >> fi > >> > >> ########################################## > >> +# adjust virtio-blk-data-plane based on linux-aio > >> + > >> +if test "$virtio_blk_data_plane" = "yes" -a \ > >> + "$linux_aio" != "yes" ; then > >> + echo "Error: virtio-blk-data-plane requires Linux AIO, please try --enable-linux-aio" > >> + exit 1 > >> +elif test -z "$virtio_blk_data_plane" ; then > >> + virtio_blk_data_plane=$linux_aio > >> +fi > > > > $linux_aio gets set automatically if the user has libaio installed and > > doesn't specify --disable-linux-aio, so this ends up enabling dataplane by > > default in a lot of situations. Since it's experimental I think it should only > > be enabled if we pass --enable-virtio-blk-data-plane explicitly. > > I expect downstreams to enable this feature. Requiring package > maintainers to add --enable-virtio-blk-data-one explicitly is probably > going to cause more work than any benefits of disabling it by default. > > The feature has no effect unless -device > virtio-blk-pci,x-data-plane-on is used. Code size is <12 KB on x86_64 > and contains nothing especially risky from a security perspective. > > That said, if there is a strong feeling this should be disabled by > default, I can switch it to default off. No, sorry for the noise. I was playing around with it locally and noticed it enabled by default, but wasn't accounting for the fact that you still need to enable the x-data-plane option to use it. I don't think it hurts to compile in the support by default. > > Stefan >