From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHn3P-0005Qn-IZ for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHn3O-0000no-Jq for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:03:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHn3O-0000nk-EV for qemu-devel@nongnu.org; Tue, 28 Jun 2016 03:03:26 -0400 Date: Tue, 28 Jun 2016 10:03:21 +0300 From: "Michael S. Tsirkin" Message-ID: <20160628100152-mutt-send-email-mst@redhat.com> References: <5770F58F.2080402@kamp.de> <20160627170938.04a7a13c.cornelia.huck@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160627170938.04a7a13c.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: Cornelia Huck Cc: Peter Lieven , "qemu-devel@nongnu.org" , famz@redhat.com, stefanha@redhat.com On Mon, Jun 27, 2016 at 05:09:38PM +0200, Cornelia Huck wrote: > On Mon, 27 Jun 2016 11:44:47 +0200 > Peter Lieven wrote: > > > Hi, with the above patch applied: > > > > commit 9f06e71a567ba5ee8b727e65a2d5347fd331d2aa > > Author: Cornelia Huck > > Date: Fri Jun 10 11:04:12 2016 +0200 > > > > virtio-pci: convert to ioeventfd callbacks > > > > a Ubuntu 14.04 VM freezes at startup when blk-mq is set up - even if there is only one queue. > > OK, I played around a bit with Stefan's block branch rebased upon > current master (and the conflict fixed up)... and I can't seem to hit > any error with virtio-ccw (will see if I find time to play around with > virtio-pci; but unless I've messed up, this should be the same code > path). VIRTIO_BLK_F_MQ is correctly negotiated if num_queues > 1, and I > can use the disk. > > So, two questions: > - Which branch are you using? Any chance of a mis-merge there? > - Can you share the interesting portion of your command line? 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? -- MST