aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/hvm
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2013-03-28 12:00:46 +0000
committerTim Deegan <tim@xen.org>2013-03-29 09:43:04 +0000
commit58afa7ef12ff31c1f11658f35a9fef35ca15d641 (patch)
treeb756fc47704a26c281b39083a9fb7ca435d28a69 /xen/include/asm-x86/hvm
parent5082cc19524b6687ef1bc0a717538d75aae7cd00 (diff)
downloadxen-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.h3
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;