From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP6ib-0002hV-LB for qemu-devel@nongnu.org; Wed, 03 Sep 2014 05:19:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP6ia-0001l1-Rh for qemu-devel@nongnu.org; Wed, 03 Sep 2014 05:19:09 -0400 Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:47591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP6iZ-0001kq-Uh for qemu-devel@nongnu.org; Wed, 03 Sep 2014 05:19:08 -0400 Received: by mail-oi0-f53.google.com with SMTP id x69so208331oia.12 for ; Wed, 03 Sep 2014 02:19:07 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140903090712.GA6792@redhat.com> References: <20140902210315.GA25153@redhat.com> <20140902215125.GC25231@redhat.com> <20140903061015.GA5449@redhat.com> <20140903081302.GC6187@redhat.com> <20140903090712.GA6792@redhat.com> From: Andrey Korolyov Date: Wed, 3 Sep 2014 13:18:47 +0400 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [Qemu-stable] Patch Round-up for stable 2.1.1, freeze on 2014-09-03 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: ehabkost@redhat.com, "qemu-devel@nongnu.org" , Stefan Hajnoczi , knut.omang@oracle.com, qemu-stable@nongnu.org, Michael Roth , Michael Tokarev , Gerd Hoffmann , "J. Kiszka" , chen.fan.fnst@cn.fujitsu.com, Paolo Bonzini , sebastian.tanase@openwide.fr, zhang.zhanghailiang@huawei.com > > OK so my patch fixes initialization likely by luck. > >> with crash still in place. > > Hmm so something is still wrong with the userspace path. > Could you please apply this debugging patch on top of > all the stack that is now working for you, and see if > assert still surfaces? > > > diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c > index 1fe18c7..a8f8826 100644 > --- a/hw/net/vhost_net.c > +++ b/hw/net/vhost_net.c > @@ -314,7 +314,10 @@ int vhost_net_start(VirtIODevice *dev, NetClientState *ncs, > } > > for (i = 0; i < total_queues; i++) { > - r = vhost_net_start_one(get_vhost_net(ncs[i].peer), dev); > + if (i > 0) > + r = -11; > + else > + r = vhost_net_start_one(get_vhost_net(ncs[i].peer), dev); > > if (r < 0) { > goto err_start; > Yes, with Jason`s patch on the top and this one both acceleration and re-initialization after reboot are broken, assert firing up again. Will check if vhost_net: cleanup recovery works as intended and reply to patch` thread.