WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] clocksource/0: Time went backwards

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
Subject: Re: [Xen-users] clocksource/0: Time went backwards
From: Bart Verwilst <lists@xxxxxxxxxxx>
Date: Thu, 11 Oct 2007 15:12:19 +0200 (CEST)
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 11 Oct 2007 06:13:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20071011130249.GF15312@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Oh.. i was hoping for some simple sysctl tweak or easy patch :)
Bummer :(

----- Original Message -----
From: "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxx>
To: "Bart Verwilst" <lists@xxxxxxxxxxx>
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, October 11, 2007 3:02:49 PM (GMT+0100) Europe/Berlin
Subject: Re: [Xen-users] clocksource/0: Time went backwards

Bart Verwilst, le Thu 11 Oct 2007 14:59:31 +0200, a écrit :
> Stall the time?
> Could you elaborate on that please?

In the Mach kernel's time function, I record the timestamp of the last
call. If the new timestamp from Xen is older than that one (i.e. a time
shift occured), I keep returning the time of the recorded timestemp,
until the timestamp from Xen becomes newer than the recorded one.

Samuel


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users