Re: [KVM timekeeping 33/35] Indicate reliable TSC in kvmclock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Glauber Costa
Date: Friday, August 20, 2010 - 10:45 am

On Thu, Aug 19, 2010 at 10:07:47PM -1000, Zachary Amsden wrote:
This is not enough.

We still can have bugs arriving from the difference in resolution between the underlying
clock and the tsc. What we're doing here, is to pass a reliable flag, to a non-reliable
guest tsc. We can only trust the guest kvmclock to be tsc-stable if the host is using
tsc clocksource as well.

Since the stable bit have to be read from the guest at every clock read, we can just
use it, and drop it if the host changes its clocksource.

An alternative for the reliable tsc case, would be to just maintain our own parallel
tsc-based clock. But to be honest, I don't like this solution very much. It adds
complexity, and I kinda believe that if the sysadmin had the work to go there
and switch clocksources, he probably has a reason for that.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[KVM timekeeping 33/35] Indicate reliable TSC in kvmclock, Zachary Amsden, (Fri Aug 20, 1:07 am)
Re: [KVM timekeeping 33/35] Indicate reliable TSC in kvmclock, Glauber Costa, (Fri Aug 20, 10:45 am)