WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xenlinux i386: don't force a reboot on panics

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xenlinux i386: don't force a reboot on panics
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Mon, 22 Aug 2005 10:16:51 +0200
Delivery-date: Mon, 22 Aug 2005 08:16:21 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This is supposed to be configurable (eg on the command line), not
hard-coded (also, x86_64 didn't try to do similar things).

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
Index: xen-2005-08-19/arch/xen/i386/kernel/setup.c
===================================================================
--- xen-2005-08-19.orig/arch/xen/i386/kernel/setup.c    2005-08-19
13:53:09.517661792 +0200
+++ xen-2005-08-19/arch/xen/i386/kernel/setup.c 2005-08-19
14:14:31.550763136 +0200
@@ -69,11 +69,6 @@
 /* Allows setting of maximum possible memory size  */
 static unsigned long xen_override_max_pfn;
 
-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 */
-};
-
 int disable_pse __devinitdata = 0;
 
 /*
@@ -1530,14 +1525,6 @@
        physdev_op_t op;
        unsigned long max_low_pfn;
 
-       /* Force a quick death if the kernel panics. */
-       extern int panic_timeout;
-       if (panic_timeout == 0)
-               panic_timeout = 1;
-
-       /* Register a call for panic conditions. */
-       notifier_chain_register(&panic_notifier_list,
&xen_panic_block);
-
        HYPERVISOR_vm_assist(VMASST_CMD_enable,
VMASST_TYPE_4gb_segments);
        HYPERVISOR_vm_assist(VMASST_CMD_enable,
                             VMASST_TYPE_writable_pagetables);
@@ -1765,14 +1752,6 @@
        }
 }
 
-static int
-xen_panic_event(struct notifier_block *this, unsigned long event, void
*ptr)
-{
-       HYPERVISOR_crash();    
-       /* we're never actually going to get here... */
-       return NOTIFY_DONE;
-}
-
 #include "setup_arch_post.h"
 /*
  * Local Variables:

Attachment: xen3-i386-panic-no-reboot
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>