From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agA2O-0006GX-8S for qemu-devel@nongnu.org; Wed, 16 Mar 2016 07:54:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agA2K-0000C3-7H for qemu-devel@nongnu.org; Wed, 16 Mar 2016 07:54:52 -0400 References: <1458123018-18651-1-git-send-email-famz@redhat.com> <56E9355A.5070700@redhat.com> <56E93A22.1080102@de.ibm.com> <56E93ECE.10103@redhat.com> <20160316123213.3dcf0abc.cornelia.huck@de.ibm.com> <20160316125201.4150b5ac.cornelia.huck@de.ibm.com> From: Paolo Bonzini Message-ID: <56E94978.7010202@redhat.com> Date: Wed, 16 Mar 2016 12:54:32 +0100 MIME-Version: 1.0 In-Reply-To: <20160316125201.4150b5ac.cornelia.huck@de.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org, "Michael S. Tsirkin" , qemu-devel@nongnu.org, Christian Borntraeger , tubo@linux.vnet.ibm.com, Stefan Hajnoczi On 16/03/2016 12:52, Cornelia Huck wrote: > > Hm... I copied these semantics from virtio-pci, and they still seem to > > be the same. I wonder why we never saw this on virtio-pci? > > > > > In dataplane, instead, all calls to > > > virtio_queue_set_host_notifier_fd_handler and > > > virtio_queue_aio_set_host_notifier_handler should have assign=true. The > > > ioeventfd is just being moved from one aiocontext to another. > > > > How can a transport know where they are called from? > > Hm^2... I looked at virtio-scsi dataplane, and I noticed that it > acquires the aio context prior to calling ->set_host_notifiers(). Does > virtio-blk dataplane need to do this as well, or is virtio-scsi > dataplane wrong/different? I cannot really answer, but my plan was to solve this bug and then ensure that virtio-scsi dataplane does exactly the same thing... I would ignore virtio-scsi dataplane for now. Paolo