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-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] hvm, s3: HVM guest RTCs become unsync'ed across host S3.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Feb 2010 01:55:11 -0800
Delivery-date: Wed, 03 Feb 2010 01:55:07 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] hvm, s3: HVM guest RTCs become unsync'ed across host S3., Xen patchbot-unstable <=