[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] set panic notifier priority to minimum
# HG changeset patch # User Andrew Jones <drjones@xxxxxxxxxx> # Date 1402927235 -7200 # Node ID e2384c98bb97ba12cbe0da3f661ec71dcb7748c3 # Parent 52cb9a45cf3deb321d5b24d5c4c302a67ede16b1 set panic notifier priority to minimum Execution is not going to continue after telling Xen about the crash. Let other panic notifiers run by postponing the final hypercall as much as possible. Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx> Signed-off-by: Radim Krcmár <rkrcmar@xxxxxxxxxx> Also cover ia64. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 52cb9a45cf3d -r e2384c98bb97 arch/i386/kernel/setup-xen.c --- a/arch/i386/kernel/setup-xen.c Tue Apr 01 10:54:24 2014 +0200 +++ b/arch/i386/kernel/setup-xen.c Mon Jun 16 16:00:35 2014 +0200 @@ -80,7 +80,8 @@ void __init find_max_pfn(void); static int xen_panic_event(struct notifier_block *, unsigned long, void *); static struct notifier_block xen_panic_block = { - xen_panic_event, NULL, 0 /* try to go last */ + .notifier_call = xen_panic_event, + .priority = INT_MIN /* try to go last */ }; extern char hypercall_page[PAGE_SIZE]; diff -r 52cb9a45cf3d -r e2384c98bb97 arch/ia64/kernel/setup.c --- a/arch/ia64/kernel/setup.c Tue Apr 01 10:54:24 2014 +0200 +++ b/arch/ia64/kernel/setup.c Mon Jun 16 16:00:35 2014 +0200 @@ -96,7 +96,8 @@ xen_panic_event(struct notifier_block *t } static struct notifier_block xen_panic_block = { - xen_panic_event, NULL, 0 /* try to go last */ + .notifier_call = xen_panic_event, + .priority = INT_MIN /* try to go last */ }; void xen_pm_power_off(void) diff -r 52cb9a45cf3d -r e2384c98bb97 arch/x86_64/kernel/setup-xen.c --- a/arch/x86_64/kernel/setup-xen.c Tue Apr 01 10:54:24 2014 +0200 +++ b/arch/x86_64/kernel/setup-xen.c Mon Jun 16 16:00:35 2014 +0200 @@ -93,7 +93,8 @@ EXPORT_SYMBOL(hypercall_page); static int xen_panic_event(struct notifier_block *, unsigned long, void *); static struct notifier_block xen_panic_block = { - xen_panic_event, NULL, 0 /* try to go last */ + .notifier_call = xen_panic_event, + .priority = INT_MIN /* try to go last */ }; unsigned long *phys_to_machine_mapping; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |