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-devel

Re: [Xen-devel] domU time lagging


On 24 Feb 2006, at 13:37, Brian Hays wrote:

I've noticed that the time inside DomU's begins lagging a few seconds behing the host (Dom0) machine. Is there a way to sync the domU times with the host server?

Probably you are running ntpd in domain0? You can try adding some code to the end of set_rtc_mmss() in arch/i386/kernel/time-xen.c (just before the return statement):

 {
    struct timeval *tv;
    struct timespec *ts;
    do_gettimeofday(&tv);
    ts.ts_sec = tv.tv_sec;
    ts.ts_nsec = tv.tv_usec * 1000;
    do_settimeofday(&ts);
 }

 -- Keir


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

<Prev in Thread] Current Thread [Next in Thread>