[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.