From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: [PATCH 4/6] xen/hvm kexec: unbind debugirq during reboot
Date: Tue, 26 Jul 2011 13:52:13 +0200 [thread overview]
Message-ID: <20110726115210.924427683@aepfle.de> (raw)
In-Reply-To: 20110726115209.655568638@aepfle.de
[-- Attachment #1: xen.syscore_ops.smp.unbind-xen_debug_irq.patch --]
[-- Type: text/plain, Size: 1408 bytes --]
Unregister the debugirq during kexec, otherwise the kexec kernel can not
bind to the still registered virq.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
arch/x86/xen/smp.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
Index: linux-3.0/arch/x86/xen/smp.c
===================================================================
--- linux-3.0.orig/arch/x86/xen/smp.c
+++ linux-3.0/arch/x86/xen/smp.c
@@ -16,6 +16,7 @@
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/smp.h>
+#include <linux/syscore_ops.h>
#include <asm/paravirt.h>
#include <asm/desc.h>
@@ -45,6 +46,21 @@ static DEFINE_PER_CPU(int, xen_debug_irq
static irqreturn_t xen_call_function_interrupt(int irq, void *dev_id);
static irqreturn_t xen_call_function_single_interrupt(int irq, void *dev_id);
+static void xen_hvn_smp_shutdown(void)
+{
+ int cpu;
+ for_each_online_cpu(cpu) {
+ if (per_cpu(xen_debug_irq, cpu) < 0)
+ continue;
+ unbind_from_irqhandler(per_cpu(xen_debug_irq, cpu), NULL);
+ per_cpu(xen_debug_irq, cpu) = -1;
+ }
+}
+
+static struct syscore_ops xen_hvn_smp_syscore_ops = {
+ .shutdown = xen_hvn_smp_shutdown,
+};
+
/*
* Reschedule call back.
*/
@@ -525,6 +541,7 @@ static void __init xen_hvm_smp_prepare_c
return;
xen_init_lock_cpu(0);
xen_init_spinlocks();
+ register_syscore_ops(&xen_hvn_smp_syscore_ops);
}
static int __cpuinit xen_hvm_cpu_up(unsigned int cpu)
next prev parent reply other threads:[~2011-07-26 11:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 11:52 [PATCH 0/6] misc changes for kexec in pv-on-hvm guests Olaf Hering
2011-07-26 11:52 ` [PATCH 1/6] xen: use static initializers in xen-balloon.c Olaf Hering
2011-07-26 14:16 ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 2/6] xen/hvm kexec: unregister shutdown+sysrq watches during reboot Olaf Hering
2011-07-26 14:17 ` Konrad Rzeszutek Wilk
2011-07-26 14:28 ` Olaf Hering
2011-07-26 11:52 ` [PATCH 3/6] xen/hvm kexec: unregister memory/target watch in xen-balloon.c Olaf Hering
2011-07-26 14:18 ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` Olaf Hering [this message]
2011-07-26 14:19 ` [PATCH 4/6] xen/hvm kexec: unbind debugirq during reboot Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 5/6] xen/hvm kexec: unregister timer interrupt " Olaf Hering
2011-07-26 14:22 ` Konrad Rzeszutek Wilk
2011-07-27 14:05 ` Olaf Hering
2011-07-27 14:38 ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 6/6] xen kexec: reset device state to Initializing " Olaf Hering
2011-07-26 14:27 ` Konrad Rzeszutek Wilk
2011-07-27 11:22 ` Stefano Stabellini
2011-07-27 12:14 ` Olaf Hering
2011-07-27 13:14 ` Stefano Stabellini
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=20110726115210.924427683@aepfle.de \
--to=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.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.