Messages in this thread | | | Date | Mon, 20 Sep 2010 12:41:20 -0300 | From | Marcelo Tosatti <> | Subject | Re: [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.
| |