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] RE: rdtsc: correctness vs performance on Xen (and KVM?)

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] RE: rdtsc: correctness vs performance on Xen (and KVM?)
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 02 Sep 2009 08:20:06 +0100
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 02 Sep 2009 00:22:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A9DAD94.2090105@xxxxxxxx>
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: AcorW5uJ7YJLO29eTaaco2Pp5tQ6iwAQjAfD
Thread-topic: [Xen-devel] RE: rdtsc: correctness vs performance on Xen (and KVM?)
User-agent: Microsoft-Entourage/12.20.0.090605
On 02/09/2009 00:26, "Jeremy Fitzhardinge" <jeremy@xxxxxxxx> wrote:

> On 09/01/09 15:41, Dan Magenheimer wrote:
>> Won't pvclock+vsyscall have the same race?
> 
> Yes, it would need to be resolved either way.

The problem is a bit easier with vsyscall potentially. For example, give
each thread its own vsyscall clock data area (easy?), updated by kernel
whenever the thread is scheduled, and increment a version counter, checked
before and after by the vsyscall operation.

Well, I don't know how easy or fast that could actually be implemented, but
I'm at least confident it could work. But it does need kernel assistance.

 -- Keir



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

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