From: "Diwaker Gupta" Subject: Emulating RDTSC Date: Thu, 26 Oct 2006 13:41:33 -0700 Message-ID: <891be9410610261341t6b024ea6i9fe5c37d2ab62f2c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org Hi all, Is it possible to modify Xen such that guests incur a fault when they try to execute RDTSC and control is then passed to the hypervisor which can then return whatever it wants to? I'm starting with x86 PV guests, but using HVM guests is certainly an option if that hardware makes it easier to achieve this. I'm thinking that setting CR4.TSD in the guest control registers should be the first step? Any comments or suggestions much appreciated. Thanks, Diwaker -- Web/Blog/Gallery: http://floatingsun.net/blog