lkml.org 
[lkml]   [2010]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 <zamsden@redhat.com>

Applied, thanks.



\
 
 \ /
  Last update: 2010-09-20 17:45    [from the cache]
©2003-2011 Jasper Spaans