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-3.4-testing] hvm, s3: HVM guest RTCs become unsync'

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] hvm, s3: HVM guest RTCs become unsync'ed across host S3.
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Feb 2010 01:55:43 -0800
Delivery-date: Wed, 03 Feb 2010 01:58:39 -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 1265190791 0
# Node ID bd7e0b7c7d1d257a2ca38edbf6659016347abe53
# Parent  3c1e7d7927f73e0df2399bbd73977393cc9d5285
hvm, s3: HVM guest RTCs become unsync'ed across host S3.

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@xxxxxxxxxx>
xen-unstable changeset:   20874:5668c36282ea
xen-unstable date:        Mon Feb 01 14:03:06 2010 +0000
---
 xen/arch/x86/time.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+)

diff -r 3c1e7d7927f7 -r bd7e0b7c7d1d xen/arch/x86/time.c
--- a/xen/arch/x86/time.c       Wed Feb 03 09:52:20 2010 +0000
+++ b/xen/arch/x86/time.c       Wed Feb 03 09:53:11 2010 +0000
@@ -859,6 +859,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;
@@ -1369,6 +1382,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-3.4-testing] hvm, s3: HVM guest RTCs become unsync'ed across host S3., Xen patchbot-3.4-testing <=