WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Append 'nohpet' in dom0 cmdline to prevent dom0 from

To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Append 'nohpet' in dom0 cmdline to prevent dom0 from using HPET
From: "Wei, Gang" <gang.wei@xxxxxxxxx>
Date: Wed, 14 Oct 2009 17:26:34 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Wed, 14 Oct 2009 02:27:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpMsGwu0IeJNY2DS/e3SZDkkFb3+A==
Thread-topic: [PATCH] Append 'nohpet' in dom0 cmdline to prevent dom0 from using HPET
Append 'nohpet' in dom0 cmdline to prevent dom0 from using HPET

Xen is using HPET to wakeup cpu from deep c-states, so the HPET usage in dom0
must be fobidden. In 2.6.18-xen, the HPET was by default disabled in config
file. For upstream kernel built for pv dom0, it is not practical to disable dom0
HPET usage in that way because the same image may be also using as bare metal 
kernerl. So add cmdline option to do this thing for dom0.

Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>

diff -r 9ba855e57afb xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      Tue Sep 29 20:56:30 2009 +0800
+++ b/xen/arch/x86/setup.c      Tue Oct 13 22:32:13 2009 +0800
@@ -1106,6 +1106,7 @@ void __init __start_xen(unsigned long mb
             safe_strcat(dom0_cmdline, " acpi=");
             safe_strcat(dom0_cmdline, acpi_param);
         }
+        safe_strcat(dom0_cmdline, " nohpet");
 
         cmdline = dom0_cmdline;
     }

Attachment: disable-dom0-hpet.patch
Description: disable-dom0-hpet.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel