From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XP6s0-0003zn-EI for qemu-devel@nongnu.org; Wed, 03 Sep 2014 05:28:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XP6ru-0006Ag-73 for qemu-devel@nongnu.org; Wed, 03 Sep 2014 05:28:52 -0400 Date: Wed, 3 Sep 2014 12:31:49 +0300 From: "Michael S. Tsirkin" Message-ID: <20140903093149.GA8509@redhat.com> References: <20140902215125.GC25231@redhat.com> <20140903061015.GA5449@redhat.com> <20140903081302.GC6187@redhat.com> <20140903090712.GA6792@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Andrey Korolyov 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 On Wed, Sep 03, 2014 at 01:18:47PM +0400, Andrey Korolyov wrote: > > > > 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. Please test v2 though - Jason found a bug in v1. Thanks!