ia64/xen-unstable

changeset 16165:975811798ffe

Avoid passing uninitialised ACPI tables to dom0 when checksums fail.

If during boot, ACPI checksum failures disable ACPI support in Xen,
pass 'acpi=off' to the domain 0 kernel to avoid a fatal page fault
as domain 0 attempts to access the uninitialized ACPI tables.

Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Steve Ofsthun <sofsthun@virtualiron.com>
author Keir Fraser <keir@xensource.com>
date Fri Oct 19 17:47:12 2007 +0100 (2007-10-19)
parents 959b4b92b6bf
children 6df47366830c
files xen/arch/x86/setup.c
line diff
     1.1 --- a/xen/arch/x86/setup.c	Fri Oct 19 17:44:20 2007 +0100
     1.2 +++ b/xen/arch/x86/setup.c	Fri Oct 19 17:47:12 2007 +0100
     1.3 @@ -972,6 +972,11 @@ void __init __start_xen(unsigned long mb
     1.4          if ( acpi_skip_timer_override &&
     1.5               !strstr(dom0_cmdline, "acpi_skip_timer_override") )
     1.6              safe_strcat(dom0_cmdline, " acpi_skip_timer_override");
     1.7 +        if ( (strlen(acpi_param) == 0) && acpi_disabled )
     1.8 +        {
     1.9 +            printk("ACPI is disabled, notifying Domain 0 (acpi=off)\n");
    1.10 +            safe_strcpy(acpi_param, "off");
    1.11 +        }
    1.12          if ( (strlen(acpi_param) != 0) && !strstr(dom0_cmdline, "acpi=") )
    1.13          {
    1.14              safe_strcat(dom0_cmdline, " acpi=");