Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JnExh-00050c-6B for qemu-devel@nongnu.org; Sat, 19 Apr 2008 11:26:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JnExb-0004zb-NU for qemu-devel@nongnu.org; Sat, 19 Apr 2008 11:26:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JnExb-0004zY-H3 for qemu-devel@nongnu.org; Sat, 19 Apr 2008 11:26:39 -0400 Received: from gwyn.kn-bremen.de ([212.63.36.242]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JnExb-0007l2-UX for qemu-devel@nongnu.org; Sat, 19 Apr 2008 11:26:40 -0400 From: Juergen Lock Date: Sat, 19 Apr 2008 17:21:47 +0200 Subject: Re: [Qemu-devel] QEMU refusing to die on FreeBSD host Message-ID: <20080419152147.GA43563@saturn.kn-bremen.de> References: <47F857CB.1000502@gmail.com> <20080406163440.GA47504@saturn.kn-bremen.de> <200804071914.m37JEKM2041182@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804071914.m37JEKM2041182@saturn.kn-bremen.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: i.am.spaz.man@gmail.com Cc: qemu-devel@nongnu.org On Mon, Apr 07, 2008 at 09:14:20PM +0200, Juergen Lock wrote: > In article <47F99FB4.7050403@gmail.com> you write: > >Juergen Lock wrote: > >> On Sun, Apr 06, 2008 at 12:55:39AM -0400, Jake Myers wrote: > >> > >>> Hello, > >>> > >>> On FreeBSD 7-STABLE, qemu refuses to exit even after the window is closed. > >>> It is stuck so badly that even kill -9 fails to stop it. I looked in top to > >>> see what it was doing that would cause it to lock so badly: > >>> > >>> PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND > >>> 34859 root 1 -8 20 433M 416M devdrn 9:49 0.00% qemu > >>> > >>> I believe the problem is that qemu for some reason refuses to stop trying > >>> to use the kqemu device. > >>> > >>> I am running the latest qemu (0.9.1). I can provide a backtrace on request > >>> (I'm really busy right now with other things, so I didn't have time to > >>> attach one). > >>> > >> > >> Yeah this looks like its the same FreeBSD 7.x/SMP issue that I already > >> got reports of (refcount problem, similar to what has already been fixed > >> once, only this time it seems to be a race...) > >> > >> If it is, you should be able to work around it by using an uniprocessor > >> host kernel until a fix is known. > >> > >> Sorry... > >> Juergen > >> > >> > >> > >> > >I disabled SMP in my kernel, rebuilt the kqemu module, and tried to run > >it again. The same issue occurs. > > Hmm okay, then its not an SMP issue, thanks for the information! > [...] OK, I just committed a fix, please try updating your kqemu port and tell me if it works for you then. Thanx, Juergen