Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FlsbK-0006xu-LQ for qemu-devel@nongnu.org; Thu, 01 Jun 2006 15:12:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FlsbJ-0006xf-DF for qemu-devel@nongnu.org; Thu, 01 Jun 2006 15:12:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FlsbJ-0006xc-7k for qemu-devel@nongnu.org; Thu, 01 Jun 2006 15:12:57 -0400 Received: from [62.8.134.5] (helo=mail.sysgo.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Flshb-0006GG-UY for qemu-devel@nongnu.org; Thu, 01 Jun 2006 15:19:28 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.sysgo.com (Postfix) with ESMTP id 4AC41FB87C for ; Thu, 1 Jun 2006 21:12:55 +0200 (CEST) Received: from donald.sysgo.com (unknown [172.20.1.30]) by mail.sysgo.com (Postfix) with ESMTP id 2FB3CFB87C for ; Thu, 1 Jun 2006 21:12:55 +0200 (CEST) Received: from localhost (unknown [172.25.1.18]) by donald.sysgo.com (Postfix) with ESMTP id 69975D0015D for ; Thu, 1 Jun 2006 21:12:52 +0200 (CEST) Date: Thu, 1 Jun 2006 21:12:54 +0200 (CEST) From: Marius Groeger Sender: mag@sysgo.com Subject: Re: [Qemu-devel] Linux 2.6.15 hangs with QEMU 0.8.0 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, 1 Jun 2006, Johannes Schindelin wrote: >> with my qemu-0.8.0 I noticed that Linux 2.6.15 runs only with the appended >> patch. > > Which patch? Brilliant me. Sorry, I forgot the patch. I don't have it handy here at home, but it's easily described: in , it made irq_enable_hazard emit 3 NOPs just as irq_disable_hazard. I stumbeled over this as my kernel hung im sched.c:wait_for_completionn(). Turned out that schedule() wasn't called properly which went away with the NOPs. Again, I didn't really investigate too much, but I reckoned if the NOPS are needed upon irq_disable_hazard, they're needed for irq_enable_hazard as well, since CP0 status is write modified in both situations. -- Marius Groeger SYSGO AG Embedded and Real-Time Software Voice: +49 6136 9948 0 FAX: +49 6136 9948 10 www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com