From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Lively Subject: [PATCH] avoid passing uninitialized ACPI tables to dom0 when checksums fail Date: Fri, 19 Oct 2007 11:42:12 -0400 Message-ID: <4718D054.4050501@virtualiron.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090400000506070803030303" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090400000506070803030303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Signed-off-by: Steve Ofsthun --------------090400000506070803030303 Content-Type: text/x-patch; name="xen-acpi-disable-notify.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xen-acpi-disable-notify.patch" 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="); --------------090400000506070803030303 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090400000506070803030303--