aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Cooper <andrew.cooper3@citrix.com>2013-08-07 16:53:32 +0200
committerJan Beulich <jbeulich@suse.com>2013-08-07 16:53:32 +0200
commitd8668381627899ce46b25582425a5760478c5b51 (patch)
tree286dddfafee6f518caa9a477500d4e133c69ae84
parentbce93fa13f7ff778820e3ef511c4a117075cdd3b (diff)
downloadxen-d8668381627899ce46b25582425a5760478c5b51.tar.gz
xen-d8668381627899ce46b25582425a5760478c5b51.tar.bz2
xen-d8668381627899ce46b25582425a5760478c5b51.zip
x86/time: Update wallclock in shared info when altering domain time offset
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
-rw-r--r--xen/arch/x86/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index cf8bc785d4..f047cb3074 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -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)