linux-um archives
 help / color / mirror / Atom feed
From: Shane Hathaway <shane@hathawaymix.org>
To: linux-kernel@vger.kernel.org,
	user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [Patch] UML: spurious interrupt freezes guest
Date: Mon, 19 Jan 2009 20:53:25 -0700	[thread overview]
Message-ID: <49754AB5.3000701@hathawaymix.org> (raw)

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

             reply	other threads:[~2009-01-20  3:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-20  3:53 Shane Hathaway [this message]
2009-01-20  4:59 ` [uml-devel] [Patch] UML: spurious interrupt freezes guest Jeff Dike
2009-01-20  5:32   ` Shane Hathaway
2009-01-20 11:29     ` lanas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49754AB5.3000701@hathawaymix.org \
    --to=shane@hathawaymix.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox