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] common time reference between domU and dom0

To: Henry Pepper <henrypepr@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] common time reference between domU and dom0
From: Keir Fraser <keir@xxxxxxx>
Date: Fri, 10 Dec 2010 10:03:39 +0000
Cc:
Delivery-date: Fri, 10 Dec 2010 02:05:44 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=XDHkrG8YH+Q2lOZYD6LaRjoa6LAdfrWmVGvzIxP8WiQ=; b=DMvBTZr1oC+8XmsRwSEN76su61aRtZjjX5/TDjChgcZqD/q6xryw2tGX9RhmQjMFcq 0bqptqRkwv4lfllhLVi7P5wDriByom1ONJUwbZ2icu3+mMd3KTvQV//iigVs9j+mzovn O7A0W/prwEzX0Q4LR091sC0GcVXqG702DmW3A=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=EyJmcWmmPgxFQ8Wb/3Rxztyw39bXkfg0xhbfx3G7kJwXsKPGrLliLr9ey03S3TP2+R vP3UMCWrfGPnyz9TSGmfpYOzus7S4HGo0V7ETaPFC0ODKoS3orxCUYHpXX2S2wIfztKQ YsdcOTE2bV/oA6AATkEQSWkrsQtBPNGDJHJpc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinHMjTXRHgkDaKMSw7hGehqPZZBpA1dJ-0W+au1@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcuYUYRTcknAvkzXhUCj1k4BWqUSkA==
Thread-topic: [Xen-devel] common time reference between domU and dom0
User-agent: Microsoft-Entourage/12.27.0.100910
All domains have access to Xen system time, either via hypercall or by
calculating it themselves directly given information Xen provides in shared
memory. Time interrupt/events can't really be missed - they are delivered
synchronously to the guest.

 -- Keir

On 10/12/2010 08:26, "Henry Pepper" <henrypepr@xxxxxxxxx> wrote:

> I was under the impression that none of the domains has the correct time.
>  Neither Dom0 nor DomU receives a timer interrupt, but only a timer
> event. Events that could be missed.
> So timing in the millisecond can have jitter and drift.
> Is there actually a way to keep a precise timer in a domain?
> 
> On top of this I would think that both domains would have to have
> exclusive access to their own CPU in order to avoid being switched off
> of the CPU in periods of time(quantums of 30 ms using the default
> scheduler).
> 
>   Henry
> 
> On Fri, Dec 10, 2010 at 8:19 AM, Keir Fraser <keir@xxxxxxx> wrote:
>> System time, as exposed to guests by Xen, should be good enough.
>> 
>>  -- Keir
>> 
>> 
>> On 10/12/2010 05:23, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:
>> 
>>> I would like to be able to measure front/back ring message latency
>>> between a Windows DomU and Dom0. To do this I need a common time
>>> reference between the two, preferably with at least microsecond
>>> precision (latency <1us is irrelevant for my purposes). Does such a
>>> thing exist? A small amount of overhead in measuring this latency is
>>> acceptable.
>>> 
>>> Thanks
>>> 
>>> James
>>> 
>>> 
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>>> http://lists.xensource.com/xen-devel
>> 
>> 
>> 
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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