direct-io.hg

changeset 9474:9239f190736d

Same panic() behaviour as native Linux when running as domain 0.
That is, no reboot: just sit there and flash the keyboard LEDs.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Mar 30 00:11:53 2006 +0100 (2006-03-30)
parents a4acdf920c27
children 7c994d80049c d5f8280c1fa9
files linux-2.6-xen-sparse/arch/i386/kernel/setup-xen.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/kernel/setup-xen.c	Thu Mar 30 00:07:23 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/kernel/setup-xen.c	Thu Mar 30 00:11:53 2006 +0100
     1.3 @@ -1633,9 +1633,9 @@ void __init setup_arch(char **cmdline_p)
     1.4  	physdev_op_t op;
     1.5  	unsigned long max_low_pfn;
     1.6  
     1.7 -	/* Force a quick death if the kernel panics. */
     1.8 +	/* Force a quick death if the kernel panics (not domain 0). */
     1.9  	extern int panic_timeout;
    1.10 -	if (panic_timeout == 0)
    1.11 +	if (!panic_timeout && !(xen_start_info->flags & SIF_INITDOMAIN))
    1.12  		panic_timeout = 1;
    1.13  
    1.14  	/* Register a call for panic conditions. */