x86/hvm: fix restart of RTC periodic timer with vpt_align=1
authorKouya Shimura <kouya@jp.fujitsu.com>
Fri, 8 Nov 2013 10:07:14 +0000 (11:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Nov 2013 10:07:14 +0000 (11:07 +0100)
commit48535f5798e3e237d9920a74c1ce3802958136c0
treee07108ce28f06feac9286a8c495754f9c6fbf986
parentac6e1ae87b229f452fa5859bf95dc51459eaeb68
x86/hvm: fix restart of RTC periodic timer with vpt_align=1

The commit 58afa7ef "x86/hvm: Run the RTC periodic timer on a
consistent time series" aligns the RTC periodic timer to the VM's boot time.
However, it's aligned later again to the system time in create_periodic_time()
with vpt_align=1. The next tick might be skipped.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/rtc.c