From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanlong Gao Subject: Re: [Qemu-devel] [PATCH 10/12] virtio-net: multiqueue support Date: Tue, 08 Jan 2013 17:32:55 +0800 Message-ID: <50EBE7C7.8070406@cn.fujitsu.com> References: <1356690724-37891-1-git-send-email-jasowang@redhat.com> <1356690724-37891-11-git-send-email-jasowang@redhat.com> <50EBE1BE.3000500@cn.fujitsu.com> <50EBE6F5.9010300@redhat.com> Reply-To: gaowanlong@cn.fujitsu.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: mst@redhat.com, aliguori@us.ibm.com, stefanha@redhat.com, qemu-devel@nongnu.org, krkumar2@in.ibm.com, kvm@vger.kernel.org, mprivozn@redhat.com, rusty@rustcorp.com.au, jwhan@filewood.snu.ac.kr, shiyer@redhat.com To: Jason Wang Return-path: Received: from cn.fujitsu.com ([222.73.24.84]:16088 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754135Ab3AHKAY (ORCPT ); Tue, 8 Jan 2013 05:00:24 -0500 In-Reply-To: <50EBE6F5.9010300@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 01/08/2013 05:29 PM, Jason Wang wrote: > On 01/08/2013 05:07 PM, Wanlong Gao wrote: >> On 12/28/2012 06:32 PM, Jason Wang wrote: >>> + } else if (nc->peer->info->type != NET_CLIENT_OPTIONS_KIND_TAP) { >>> + ret = -1; >>> + } else { >>> + ret = tap_detach(nc->peer); >>> + } >>> + >>> + return ret; >>> +} >>> + >>> +static void virtio_net_set_queues(VirtIONet *n) >>> +{ >>> + int i; >>> + >>> + for (i = 0; i < n->max_queues; i++) { >>> + if (i < n->curr_queues) { >>> + assert(!peer_attach(n, i)); >>> + } else { >>> + assert(!peer_detach(n, i)); >> I got a assert here, >> qemu-system-x86_64: /work/git/qemu/hw/virtio-net.c:330: virtio_net_set_queues: Assertion `!peer_detach(n, i)' failed. >> >> Any thoughts? >> >> Thanks, >> Wanlong Gao > > Thanks for the testing, which steps or cases did you met this assertion, > migration, reboot or just changing the number of virtqueues? It may because my host doesn't support muti-tap, I'll try with the upstream kernel again. Thanks, Wanlong Gao > >>> + } >>> + } >>> +} >>> + >>> +static void virtio_net_set_multiqueue(VirtIONet *n, int multiqueue, int ctrl); >>> + >> -- >> To unsubscribe from this list: send the line "unsubscribe kvm" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > >