From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>,
Jan Beulich <JBeulich@novell.com>
Subject: Crash in __pirq_guest_eoi()
Date: Fri, 03 Sep 2010 11:33:38 -0700 [thread overview]
Message-ID: <4C813F82.1090502@goop.org> (raw)
I'm seeing a crash in:
static void __pirq_guest_eoi(struct domain *d, int pirq)
{
struct irq_desc *desc;
irq_guest_action_t *action;
cpumask_t cpu_eoi_map;
int irq;
ASSERT(local_irq_is_enabled());
desc = domain_spin_lock_irq_desc(d, pirq, NULL);
if ( desc == NULL )
return;
action = (irq_guest_action_t *)desc->action;
irq = desc - irq_desc;
if ( action->ack_type == ACKTYPE_NONE )
{
where action is NULL.
I'm playing around with the pvops kernel's handling of pirq interrupts,
so the kernel is probably misbehaving, but it would be nice if Xen
didn't keep crashing on me.
I guess this is the right fix/workaround?
diff -r d37dc6401a1f xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c Thu Sep 02 17:44:46 2010 +0100
+++ b/xen/arch/x86/irq.c Fri Sep 03 11:33:15 2010 -0700
@@ -1028,6 +1028,9 @@
action = (irq_guest_action_t *)desc->action;
irq = desc - irq_desc;
+ if ( action == NULL )
+ return;
+
if ( action->ack_type == ACKTYPE_NONE )
{
ASSERT(!test_bit(pirq, d->pirq_mask));
J
next reply other threads:[~2010-09-03 18:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 18:33 Jeremy Fitzhardinge [this message]
2010-09-06 12:04 ` Crash in __pirq_guest_eoi() Jan Beulich
2010-09-06 23:57 ` Jeremy Fitzhardinge
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=4C813F82.1090502@goop.org \
--to=jeremy@goop.org \
--cc=JBeulich@novell.com \
--cc=Xen-devel@lists.xensource.com \
--cc=keir.fraser@eu.citrix.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.