Received: from eggs.gnu.org ([208.118.235.92]:59384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWmvv-0003xJ-Er for qemu-devel@nongnu.org; Mon, 29 Apr 2013 08:11:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UWmvt-0006Dj-Fk for qemu-devel@nongnu.org; Mon, 29 Apr 2013 08:11:51 -0400 Received: from hall.aurel32.net ([2001:470:1f15:c4f::1]:37923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UWmvt-000651-9L for qemu-devel@nongnu.org; Mon, 29 Apr 2013 08:11:49 -0400 Date: Mon, 29 Apr 2013 14:11:29 +0200 From: Aurelien Jarno Message-ID: <20130429121129.GB4613@ohm.aurel32.net> References: <1366874663-2566-1-git-send-email-jasowang@redhat.com> <20130426104953.GA4613@ohm.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20130426104953.GA4613@ohm.aurel32.net> Subject: Re: [Qemu-devel] [PATCH v2] virtio-net: unbreak the minix guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, mst@redhat.com On Fri, Apr 26, 2013 at 12:49:53PM +0200, Aurelien Jarno wrote: > On Thu, Apr 25, 2013 at 03:24:23PM +0800, Jason Wang wrote: > > Multiqueue patchset conditionally add control vq only when guest negotiate the > > feature. Though the spec is not clear on this but it breaks the minix guest > > since it will identify the ctrl vq even if it does not support it. Though this > > behavior seems a violation on the spec "If the VIRTIO_NET_F_CTRL_VQ feature bit > > is negotiated, identify the control virtqueue.", to keep the backward > > compatibility, always add the ctrl vq at end of the queues. > > > > Reported-by: Aurelien Jarno > > Cc: Aurelien Jarno > > Signed-off-by: Jason Wang > > > > --- > > Changes from V1: > > - Drop the unrelated cleanups > > - Drop the meaningless ctrl parameter of virtio_net_set_multiqueue() > > --- > > hw/net/virtio-net.c | 15 ++++++++------- > > 1 files changed, 8 insertions(+), 7 deletions(-) > > > Thanks a lot for this patch. It fixes the issue observed on Minix. For > the record it also fixes virtio-net with NetBSD 6.0.1, before it was > triggering an assertion in QEMU. > > Now that the problem is clear, I will try to work on fixing the problem > on the OS side when I find some time. > For the record, now that I understand the problem, I have been able to fix the issue on the guest side. Here are the links to the bug reports and patches: - Minix: https://gforge.cs.vu.nl/gf/project/minix/tracker/?action=TrackerItemEdit&tracker_item_id=653 - NetBSD: http://gnats.netbsd.org/47780 -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net