Return-Path: Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by 235xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LP7gJ-0005UC-H5 for user-mode-linux-devel@lists.sourceforge.net; Tue, 20 Jan 2009 03:53:39 +0000 Received: from out02.mta.xmission.com ([166.70.13.232]) by 72vjzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1LP7gE-0001Rq-Ip for user-mode-linux-devel@lists.sourceforge.net; Tue, 20 Jan 2009 03:53:39 +0000 Message-ID: <49754AB5.3000701@hathawaymix.org> Date: Mon, 19 Jan 2009 20:53:25 -0700 From: Shane Hathaway MIME-Version: 1.0 Subject: [uml-devel] [Patch] UML: spurious interrupt freezes guest List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net A new instance of user mode linux that I created over the past couple of days worked pretty well except that it had a habit of freezing after a few minutes. Every time it froze, the last message on the console was either: spurious interrupt in ubd_handler, err = 4 or: spurious interrupt in ubd_handler, err = 0 This message is generated by arch/um/drivers/ubd_kern.c. I did not work out the cause of the spurious interrupts, but I did come up with a patch that makes the guest recover from spurious interrupts without freezing. It appears that the interrupt handler needs to be reactivated before every exit of ubd_handler(). The patch is below. Shane --- linux-2.6.27.12-orig/arch/um/drivers/ubd_kern.c +++ linux-2.6.27.12/arch/um/drivers/ubd_kern.c @@ -489,6 +489,7 @@ break; printk(KERN_ERR "spurious interrupt in ubd_handler, " "err = %d\n", -n); + reactivate_fd(thread_fd, UBD_IRQ); return; } ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel