From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHnfd-0005xa-HT for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:42:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHnfY-0001WO-Dr for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:42:56 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53048 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHnfY-0001WG-73 for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:42:52 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5S7YaUw018664 for ; Tue, 28 Jun 2016 03:42:51 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 23snxuvw76-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 28 Jun 2016 03:42:51 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 Jun 2016 08:42:49 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id E2FC42190069 for ; Tue, 28 Jun 2016 08:42:16 +0100 (BST) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u5S7gkSd8978698 for ; Tue, 28 Jun 2016 07:42:46 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u5S7gkLP001079 for ; Tue, 28 Jun 2016 03:42:46 -0400 Date: Tue, 28 Jun 2016 09:42:45 +0200 From: Cornelia Huck In-Reply-To: <20160628100152-mutt-send-email-mst@redhat.com> References: <5770F58F.2080402@kamp.de> <20160627170938.04a7a13c.cornelia.huck@de.ibm.com> <20160628100152-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160628094245.0fefc484.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] Regression: virtio-pci: convert to ioeventfd callbacks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , Peter Lieven Cc: "qemu-devel@nongnu.org" , famz@redhat.com, stefanha@redhat.com On Tue, 28 Jun 2016 10:03:21 +0300 "Michael S. Tsirkin" wrote: > I notice cleanup is a bit weird: > > virtio_queue_set_host_notifier_fd_handler(vq, false, false); > k->ioeventfd_assign(proxy, notifier, n, assign); > event_notifier_cleanup(notifier); > > I think virtio_queue_set_host_notifier_fd_handler should happen > after ioeventfd_assign for symmetry with init? Looking at the pre-rework code, ccw used the order now in common code, while pci and mmio used the order you suggest. "Switch the handler back, then unassign the transport's ioeventfd backing" made more sense to me (regardless of symmetry) - but we might lose a notification? Peter: Can you check whether your problem goes away if you switch the two lines around?