[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] [PATCH] Implement rdtscp emulation and rdtscp_aux "support"



>>> 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.