diff options
author | Andrew Cooper <andrew.cooper3@citrix.com> | 2013-08-08 10:33:42 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-08-08 10:33:42 +0200 |
commit | d68c5d909e30f97062cb0dcd05d3b8e90de11638 (patch) | |
tree | 8b9da1aef60752fd6fea0b47c3590ea6fd8a97ca | |
parent | 858bae4d1ccc1fe172ec1f03302aeedb19bc2ea5 (diff) | |
download | xen-d68c5d909e30f97062cb0dcd05d3b8e90de11638.tar.gz xen-d68c5d909e30f97062cb0dcd05d3b8e90de11638.tar.bz2 xen-d68c5d909e30f97062cb0dcd05d3b8e90de11638.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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index 2e7b019b86..7d29cd8737 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -942,6 +942,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) |