Re: [PATCH 1/6] UML - Deal with host time going backwards

From: Eric W. Biederman
Date: Tue Jun 03 2008 - 21:51:56 EST


Jeff Dike <jdike@xxxxxxxxxxx> writes:

> On Tue, Jun 03, 2008 at 01:07:09PM -0700, Andrew Morton wrote:
>> So if I change the host's time by an hour, the time will not advance at all
>> on the guest for the next hour? Sounds suboptimal :)
>
> It is, but if the host is whacked, the guest just has to do the best that
> it can...

Could using a CLOCK_MONOTONIC time source fix this? Those timers do not
change when we change the time on the host.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/