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] [RFC] [PATCH] use "reliable" tsc properly when available

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC] [PATCH] use "reliable" tsc properly when available, but verify
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 29 Sep 2009 08:43:03 +0100
Cc:
Delivery-date: Tue, 29 Sep 2009 00:43:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ad461f55-361d-41f2-8e3c-ee8c861cbefe@default>
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: AcpAh8ZSM519JUpaQIq7mOjtrglpdAAULM96
Thread-topic: [Xen-devel] [RFC] [PATCH] use "reliable" tsc properly when available, but verify
User-agent: Microsoft-Entourage/12.20.0.090605
On 28/09/2009 23:05, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> Note that upstream Linux NEVER writes to TSC anymore.
> If the check_tsc_warp test fails, tsc is simply marked
> as an unreliable mechanism other than for interpolating
> within a jiffie.  If OS's had some intrinsic to describe
> this "reliable vs unreliable TSC" to apps, lots of troubles
> could have been avoided.  But that's roughly what I
> am trying to do with pvrdtscp so I'm trying to be very
> sure that when Xen says it is, TSC is both reliable and
> continues to be reliable.  (Though maybe once at boottime
> is sufficient.)

Given that TSC is now emulated, who cares what the underlying CPUs say about
TSC reliability. Xen emulates the TSC with its own system time, and even
explicitly checks that the returned TSC value is monotonically increasing.
So TSC is alweays 'reliable' for guests, regardless of host TSC behaviour.
So on this count, too, the patch is a reject.

 -- Keir



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