[lkml]   [2010]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [KVM timekeeping fixes 1/4] Fix kvmclock bug
On Sat, Sep 18, 2010 at 02:38:12PM -1000, Zachary Amsden wrote:
> If preempted after kvmclock values are updated, but before hardware
> virtualization is entered, the last tsc time as read by the guest is
> never set. It underflows the next time kvmclock is updated if there
> has not yet been a successful entry / exit into hardware virt.
> Fix this by simply setting last_tsc to the newly read tsc value so
> that any computed nsec advance of kvmclock is nulled.
> Signed-off-by: Zachary Amsden <>

Applied, thanks.

 \ /
  Last update: 2010-09-20 17:45    [W:0.053 / U:3.816 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site