From: Bernd Schubert Subject: Re: [regression] virtio net locks up Date: Wed, 01 Aug 2012 19:05:40 +0200 Message-ID: <501961E4.1060108@itwm.fraunhofer.de> References: <4F0DB647.4080307@itwm.fraunhofer.de> <5016CD9F.1020502@itwm.fraunhofer.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, "Michael S. Tsirkin" To: Stefan Hajnoczi Return-path: Received: from mailgw1.uni-kl.de ([131.246.120.220]:33987 "EHLO mailgw1.uni-kl.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752352Ab2HARFp (ORCPT ); Wed, 1 Aug 2012 13:05:45 -0400 Received: from itwm2.itwm.fhg.de (itwm2.itwm.fhg.de [131.246.191.3]) by mailgw1.uni-kl.de (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q71H5gDl023000 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Wed, 1 Aug 2012 19:05:42 +0200 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 07/31/2012 12:23 PM, Stefan Hajnoczi wrote: > On Mon, Jul 30, 2012 at 7:08 PM, Bernd Schubert >> >> I took a quick glance where skb_recv_done is registered at all and traced it >> back to vp_find_vqs(). Looking into that function I noticed MSI and so tried >> to boot with pci=nomsi. And indeed I guessed it right, with pci=nomsi I >> don't get any lockups anymore. >> Am I the only one booting kvm-qemu usually with enabled MSI? > > MSI enabled is good and is the default with modern qemu-kvm + guest OSes. > > Michael: Any ideas? I just tried to boot with -net...,vectors=0 and -net...,vectors=32, both time it locks up. So MSI-X vs. MSI does not make a difference. I don't have any time to further track that down right now. Shall I open a bugzilla ticket so that it won't be forgotten? And I also tend to make a simple patch to let virtio-net always use normal interrupts as users usually don't like lock ups... But then I still don't understand why I seem to be the only one running into it (or at least I'm the only one complaining loudly). Cheers, Bernd