]> xenbits.xensource.com Git - xen.git/commitdiff
x86/time: Update wallclock in shared info when altering domain time offset
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Aug 2013 08:41:20 +0000 (10:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Aug 2013 08:41:20 +0000 (10:41 +0200)
domain_set_time_offset() udpates d->time_offset_seconds, but does not correct
the wallclock in the shared info, meaning that it is incorrect until the next
XENPF_settime hypercall from dom0 which resynchronises the wallclock for all
domains.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
master commit: 915a59f25c5eddd86bc2cae6389d0ed2ab87e69e
master date: 2013-07-18 09:16:15 +0200

xen/arch/x86/time.c

index c2fc955183579f7ec4ee86bf3346759875909151..20edfd71e46806404525fdc8324ba478cebb2734 100644 (file)
@@ -931,6 +931,7 @@ void domain_set_time_offset(struct domain *d, int32_t time_offset_seconds)
     d->time_offset_seconds = time_offset_seconds;
     if ( is_hvm_domain(d) )
         rtc_update_clock(d);
+    update_domain_wallclock_time(d);
 }
 
 int cpu_frequency_change(u64 freq)