From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkGir-0005Ra-La for qemu-devel@nongnu.org; Sun, 16 Dec 2012 11:05:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TkGip-0004ny-5r for qemu-devel@nongnu.org; Sun, 16 Dec 2012 11:05:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TkGio-0004nu-O3 for qemu-devel@nongnu.org; Sun, 16 Dec 2012 11:05:47 -0500 Date: Sun, 16 Dec 2012 18:08:53 +0200 From: "Michael S. Tsirkin" Message-ID: <20121216160853.GC15790@redhat.com> References: <1355144985-12897-1-git-send-email-stefanha@redhat.com> <1355144985-12897-13-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1355144985-12897-13-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH v6 12/12] virtio-blk: add x-data-plane=on|off performance feature List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Anthony Liguori , qemu-devel@nongnu.org, Blue Swirl , khoa@us.ibm.com, Paolo Bonzini , Asias He On Mon, Dec 10, 2012 at 02:09:45PM +0100, Stefan Hajnoczi wrote: > @@ -33,6 +34,7 @@ typedef struct VirtIOBlock > VirtIOBlkConf *blk; > unsigned short sector_mask; > DeviceState *qdev; > + VirtIOBlockDataPlane *dataplane; > } VirtIOBlock; > > static VirtIOBlock *to_virtio_blk(VirtIODevice *vdev) > @@ -407,6 +409,14 @@ static void virtio_blk_handle_output(VirtIODevice *vdev, VirtQueue *vq) > .num_writes = 0, > }; > > + /* Some guests kick before setting VIRTIO_CONFIG_S_DRIVER_OK so start > + * dataplane here instead of waiting for .set_status(). > + */ By the way which guests are these? > + if (s->dataplane) { > + virtio_blk_data_plane_start(s->dataplane); > + return; > + } > + By the way it's chunk such as this that I meant: it's not compiled out even if dataplane is disabled by configure. Naither is the extra field in the struct. > while ((req = virtio_blk_get_request(s))) { > virtio_blk_handle_request(req, &mrb); > }