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] [PATCH] Implement rdtscp emulation and rdtscp_aux "suppo

To: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Implement rdtscp emulation and rdtscp_aux "support"
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Thu, 26 Nov 2009 15:23:16 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 26 Nov 2009 07:23:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ef958e5d-e948-4414-8c68-438af3649bb1@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>
References: <4B0E471E0200007800022289@xxxxxxxxxxxxxxxxxx> <ef958e5d-e948-4414-8c68-438af3649bb1@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> 26.11.09 15:57 >>>
>I suppose it's a moot point since Keir has patched it already
>anyway, but what is the mechanism for Linux to do this?
>Have you tried it on SuSE or any recent distro lately?
>Does Linux emulate rdtsc then (and, if so, could you point
>me to the code in the kernel that does it)?
>I ask because I found that the dynamic loader uses rdtsc
>(harmlessly) so if CR4.TSD is turned off by Linux and
>Linux doesn't emulate rdtsc, I suspect turning on this
>security option is suicidal.

I didn't try it, I just know the code is there. See
arch/x86/kernel/process.c for its handling of TIF_NOTSC, settable
through sys_prctl(PR_SET_TSC, ...).

Jan


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