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

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] domU time lagging
From: "Brian Hays" <brian.hays@xxxxxxxxx>
Date: Fri, 24 Feb 2006 09:22:40 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 24 Feb 2006 14:23:19 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=kLcZLJB/52Zp6JP+d3sanOAEKrEQkfO82mscOGcD3jdSNy2ZkZVYjSEjNgthpYgcssxktiy5HCsRZNAGevlOCBOexmEg9D4w90BRxgoaLz9pqun+Fse1aoOsHdUNmqfTusqR/m/RImFmYxj7t1zpt2G/47RZON5WSPQYbOc6I2g=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <85da468a727f9fb9dabad4d45d572657@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <e4ca66ec0602240537p62483321s363f0119a3e37d57@xxxxxxxxxxxxxx> <85da468a727f9fb9dabad4d45d572657@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thank you ... Will this cause the domU's to sync their time with the dom0 on an interval basis or solely upon initial creation?

Brian

On 2/24/06, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> wrote:

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>