lkml.org 
[lkml]   [2010]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 14/18] Fix a possible backwards warp of kvmclock
    On 07/12/2010 10:25 PM, Zachary Amsden wrote:
    > Kernel time, which advances in discrete steps may progress much slower
    > than TSC. As a result, when kvmclock is adjusted to a new base, the
    > apparent time to the guest, which runs at a much higher, nsec scaled
    > rate based on the current TSC, may have already been observed to have
    > a larger value (kernel_ns + scaled tsc) than the value to which we are
    > setting it (kernel_ns + 0).
    >
    > We must instead compute the clock as potentially observed by the guest
    > for kernel_ns to make sure it does not go backwards.
    >
    > Signed-off-by: Zachary Amsden<zamsden@redhat.com>

    Acked-by: Rik van Riel <riel@redhat.com>

    --
    All rights reversed


    \
     
     \ /
      Last update: 2010-07-15 04:39    [W:3.107 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site