* [PATCH] avoid passing uninitialized ACPI tables to dom0 when checksums fail
@ 2007-10-19 15:42 David Lively
0 siblings, 0 replies; only message in thread
From: David Lively @ 2007-10-19 15:42 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 309 bytes --]
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>
[-- Attachment #2: xen-acpi-disable-notify.patch --]
[-- Type: text/x-patch, Size: 736 bytes --]
diff -r 0e884ef3b5bd xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c Thu Oct 18 18:22:12 2007 -0400
+++ b/xen/arch/x86/setup.c Thu Oct 18 18:22:12 2007 -0400
@@ -970,6 +970,11 @@ void __init __start_xen(unsigned long mb
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(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=");
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-19 15:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 15:42 [PATCH] avoid passing uninitialized ACPI tables to dom0 when checksums fail David Lively
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.