diff options
author | Tim Deegan <tim@xen.org> | 2013-03-28 12:00:46 +0000 |
---|---|---|
committer | Tim Deegan <tim@xen.org> | 2013-03-29 09:43:04 +0000 |
commit | 58afa7ef12ff31c1f11658f35a9fef35ca15d641 (patch) | |
tree | b756fc47704a26c281b39083a9fb7ca435d28a69 /xen/include/asm-x86/hvm | |
parent | 5082cc19524b6687ef1bc0a717538d75aae7cd00 (diff) | |
download | xen-58afa7ef12ff31c1f11658f35a9fef35ca15d641.tar.gz xen-58afa7ef12ff31c1f11658f35a9fef35ca15d641.tar.bz2 xen-58afa7ef12ff31c1f11658f35a9fef35ca15d641.zip |
x86/hvm: Run the RTC periodic timer on a consistent time series.
When the RTC periodic timer gets restarted, align it to the VM's boot
time, not to whatever time it is now. Otherwise every read of REG_C
will restart the current period
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/include/asm-x86/hvm')
-rw-r--r-- | xen/include/asm-x86/hvm/vpt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/asm-x86/hvm/vpt.h b/xen/include/asm-x86/hvm/vpt.h index c75297bd5d..2e9c7d24eb 100644 --- a/xen/include/asm-x86/hvm/vpt.h +++ b/xen/include/asm-x86/hvm/vpt.h @@ -104,8 +104,9 @@ typedef struct RTCState { struct hvm_hw_rtc hw; /* RTC's idea of the current time */ struct tm current_tm; + /* periodic timer */ + s_time_t start_time; /* second update */ - int64_t next_second_time; struct periodic_time pt; /* update-ended timer */ struct timer update_timer; |