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

[Xen-changelog] [xen-unstable] hvm, s3: HVM guest RTCs become unsync'ed across host S3.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265032986 0
# Node ID 5668c36282ea49d4a5b3cbde3d6d1a3f4de69acf
# Parent  857d7b2dd8c78f7212eb1f5741815aa34cbcfc64
hvm, s3: HVM guest RTCs become unsync'ed across host S3.

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@xxxxxxxxxx>
---
 xen/arch/x86/time.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+)

diff -r 857d7b2dd8c7 -r 5668c36282ea xen/arch/x86/time.c
--- a/xen/arch/x86/time.c       Fri Jan 29 08:59:46 2010 +0000
+++ b/xen/arch/x86/time.c       Mon Feb 01 14:03:06 2010 +0000
@@ -906,6 +906,19 @@ void update_domain_wallclock_time(struct
     spin_unlock(&wc_lock);
 }
 
+static void update_domain_rtc(void)
+{
+    struct domain *d;
+
+    rcu_read_lock(&domlist_read_lock);
+
+    for_each_domain ( d )
+        if ( is_hvm_domain(d) )
+            rtc_update_clock(d);
+
+    rcu_read_unlock(&domlist_read_lock);
+}
+
 void domain_set_time_offset(struct domain *d, int32_t time_offset_seconds)
 {
     d->time_offset_seconds = time_offset_seconds;
@@ -1534,6 +1547,8 @@ int time_resume(void)
     do_settime(get_cmos_time() + cmos_utc_offset, 0, NOW());
 
     update_vcpu_system_time(current);
+
+    update_domain_rtc();
 
     return 0;
 }

_______________________________________________
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®.