avoid passing uninitialized ACPI tables to dom0 when checksums fail
PATCH 1/1 avoid passing uninitialized 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 <[email protected]>
Signed-off-by Steve Ofsthun <[email protected]>
xen/arch/x86/setup.c +5 -0
@@ -970,6 +970,11 @@ void __init __start_xen(unsigned long mbif ( 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 (KERN_WARNING "ACPI is disabled, notifying Domain 0\n" ); +safe_strcpy (acpi_param,"off" ); + }if ( (strlen (acpi_param) !=0 ) && !strstr (dom0_cmdline,"acpi=" ) ) {safe_strcat (dom0_cmdline," acpi=" );
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel