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

[Xen-devel] Re: Linux questions

To: Andi Kleen <andi@xxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: Linux questions
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 04 Dec 2007 11:56:51 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Jan Beulich <jbeulich@xxxxxxxxxx>, Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Delivery-date: Tue, 04 Dec 2007 03:57:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20071204114405.GB10287@xxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acg2bMFzACSEdaJgEdy0zwAX8io7RQ==
Thread-topic: Linux questions
User-agent: Microsoft-Entourage/11.3.6.070618
On 4/12/07 11:44, "Andi Kleen" <andi@xxxxxxxxxxxxxx> wrote:

>> I must disagree! And I *know* that RDTSC is not a serialising instruction...
>> 
>> If we race, then there was an interrupt. Interrupt delivery is a
>> serialisation point for the interrupted instruction stream.
> 
> The synchronization relies on the RDTSC happening between the
> two sequence number checks. Otherwise you can get inconsistent state
> between RDTSC and the xtime data which might be changing asynchronously
> on another CPU. Therefore you need RDTSC barriers.

Our monotonic_clock() implementation does not reference xtime nor its
seqlock. If it did, you would be correct.

 -- Keir



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