]> xenbits.xensource.com Git - xen.git/commit
Add a safety valve to the HVM RTC model for big time jumps
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Jun 2010 09:05:42 +0000 (10:05 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Jun 2010 09:05:42 +0000 (10:05 +0100)
commit9c667640ec3b50d10af660d7742f4372c70f30e7
treee72d8e1f52a52ce61067fb46d0e0d33987c8c9c4
parent288f75ff8e23d183fd6ee19e77d8263d1cb93d9d
Add a safety valve to the HVM RTC model for big time jumps

If xen's time leaps forward by a large amount, the RTC will try to
model a tick for every second that it thinks has passed.  This can
livelock a CPU with a series of timer requests each of which fires
immediately and requests the next one.

This patch treats a delay of more than a day between ticks as a
special case, abandoning the attempt to catch up.  That should be good
enough to avoid livelock but doesn't fix the underlying time problem.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/hvm/rtc.c