From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4lej-0005G5-IZ for qemu-devel@nongnu.org; Mon, 23 May 2016 04:56:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4leg-0000nd-4r for qemu-devel@nongnu.org; Mon, 23 May 2016 04:56:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4lef-0000nX-Vi for qemu-devel@nongnu.org; Mon, 23 May 2016 04:56:06 -0400 Date: Mon, 23 May 2016 16:56:05 +0800 From: Fam Zheng Message-ID: <20160523085605.GA13512@ad.usersys.redhat.com> References: <1463787632-7241-1-git-send-email-stefanha@redhat.com> <1463787632-7241-6-git-send-email-stefanha@redhat.com> <20160523024323.GA9980@ad.usersys.redhat.com> <9fbe1371-6244-0c09-af00-88f94c4a882b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9fbe1371-6244-0c09-af00-88f94c4a882b@redhat.com> Subject: Re: [Qemu-devel] [PATCH 5/9] virtio-blk: multiqueue batch notify List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Stefan Hajnoczi , Kevin Wolf , Ming Lei , qemu-devel@nongnu.org On Mon, 05/23 10:17, Paolo Bonzini wrote: > > > On 23/05/2016 04:43, Fam Zheng wrote: > > > The batch notification BH needs to know which virtqueues to notify when > > > multiqueue is enabled. Use a bitmap to track the virtqueues that with > > > pending notifications. > > > > This approach works great as long as VQs are in the same iothread. An > > alternative way would be using separate BH per VQ, which will naturely work with > > multi queue block layer in the future. Should we just go for that in the first > > place? Seems less code churn, and no imaginable disadvantage compared to this > > patch. > > It can be slower because all BHs are walked during aio_bh_poll, not just > the scheduled ones. > OK, this is a fair point. Thanks. Fam