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

[Xen-changelog] [xen-unstable] x86: Fix S3 resume after creating an HVM guest.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1213001474 -3600
# Node ID a40c23c25b0d54e950367c5dd5028bc19ed43618
# Parent  37392df51f0bde7ce847c3879b812d1ee0026541
x86: Fix S3 resume after creating an HVM guest.

If we don't use PIT, we should disable it at boot time and at S3
resuming. In Xen this is done by disable_pit_irq(), but this function
is used by __initcall(). After bootstrap it will be discarded and may be
overwritten. This usually results in S3 resuming failure.

Signed-off-by: Huacai Chen <huacai.chen@xxxxxxxxx>
Signed-off-by: Li Zhang <li.zhang@xxxxxxxxx>
---
 xen/arch/x86/time.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 37392df51f0b -r a40c23c25b0d xen/arch/x86/time.c
--- a/xen/arch/x86/time.c       Mon Jun 09 09:47:51 2008 +0100
+++ b/xen/arch/x86/time.c       Mon Jun 09 09:51:14 2008 +0100
@@ -999,7 +999,7 @@ void __init early_time_init(void)
     setup_irq(0, &irq0);
 }
 
-static int __init disable_pit_irq(void)
+static int disable_pit_irq(void)
 {
     if ( !using_pit && cpu_has_apic )
     {

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


 


Rackspace

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