[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.4-testing] hvm, s3: HVM guest RTCs become unsync'ed across host S3.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |