Skip to contentSkip to conversation

Make HPET device model paranoid to counter wrap

PATCH New Keir Fraser 1 participant 1 message Oct 21, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make HPET device model paranoid to counter wrap

Changing the hpet periodic timers to use vpt periodic timers means there is no real reason to have a hpet callback at all. However, the value of the comparator is now computed when it is read (which is rarely), based on the difference between the current time and the last comparator value. This works unless the current time has wrapped and passed the comparator completely at least once since it was last read. This patch reimplements the hpet callback so that the comparator is updated on every timer expiration (for a running timer). It is probably not needed but better safe than sorry.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel