mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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>
This commit is contained in:
1 parent
a51497b069
commit
f475a034a7
1 file changed
+5
@@ -972,6 +972,11 @@ void __init __start_xen(unsigned long mbi_p)
|
||||
if ( acpi_skip_timer_override &&
|
||||
!strstr(dom0_cmdline, "acpi_skip_timer_override") )
|
||||
safe_strcat(dom0_cmdline, " acpi_skip_timer_override");
|
||||
if ( (strlen(acpi_param) == 0) && acpi_disabled )
|
||||
{
|
||||
printk("ACPI is disabled, notifying Domain 0 (acpi=off)\n");
|
||||
safe_strcpy(acpi_param, "off");
|
||||
}
|
||||
if ( (strlen(acpi_param) != 0) && !strstr(dom0_cmdline, "acpi=") )
|
||||
{
|
||||
safe_strcat(dom0_cmdline, " acpi=");
|
||||
|
||||