lkml.org 
[lkml]   [2009]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] keep guest wallclock in sync with host clock
On 09/02/2009 03:48 PM, Glauber Costa wrote:
>
>> You can't prevent host preemption. You might read kvmclock again and
>> repeat if too much time has passed.
>>
> But then you can be scheduled after you did settimeofday, but before reading
> kvmclock again. Since we're aiming for periodic adjustments here,
> any discrepancies should not last long, so we can maybe live with it.
>

do {
read_kvmclock
settimeofday
read_kvmclock
} while the_difference_between_the_two_reads_is_too_large


--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2009-09-02 14:59    [W:0.039 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site