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

[Xen-devel] Emulating RDTSC

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Emulating RDTSC
From: "Diwaker Gupta" <diwaker.lists@xxxxxxxxx>
Date: Thu, 26 Oct 2006 13:41:33 -0700
Delivery-date: Thu, 26 Oct 2006 13:41:52 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=NIMoKdj4EU7byU+H+atEAvfo3j/YDcwA07md/pl9vS4fRHOgxf8QMJVfuNpE0hawLf+FrgheMawUIm+hXZoAG5/8VynYxhIPAI3vL6WF/7P+jnsYaQf6Z6PBQhN2BDwiGE9wcghEqk2w/n7tVazFgyZqPTcyr8HcV7CaLynwfsw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

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

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