From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4l3z-0005co-Sq for qemu-devel@nongnu.org; Mon, 23 May 2016 04:18:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b4l3t-00019T-PM for qemu-devel@nongnu.org; Mon, 23 May 2016 04:18:10 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:34404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b4l3t-00018k-IR for qemu-devel@nongnu.org; Mon, 23 May 2016 04:18:05 -0400 Received: by mail-wm0-x234.google.com with SMTP id z87so5676282wmh.1 for ; Mon, 23 May 2016 01:18:05 -0700 (PDT) Sender: Paolo Bonzini 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> From: Paolo Bonzini Message-ID: <9fbe1371-6244-0c09-af00-88f94c4a882b@redhat.com> Date: Mon, 23 May 2016 10:17:45 +0200 MIME-Version: 1.0 In-Reply-To: <20160523024323.GA9980@ad.usersys.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Fam Zheng , Stefan Hajnoczi Cc: Kevin Wolf , Ming Lei , qemu-devel@nongnu.org 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. Paolo