From: XuNanxuan Subject: Question about time measure in Guest Windows Date: Thu, 4 Dec 2008 06:44:55 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1382982646==" Return-path: 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1382982646== Content-Type: multipart/alternative; boundary="_405f51c4-fb12-4411-b3ab-5a1283a957b1_" --_405f51c4-fb12-4411-b3ab-5a1283a957b1_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi: =20 I intend to use RDTSC to make some time tests in Xen guest WinXP. However= , from Intel Developer's Manual I noticed that RDTSC will cause VMExit if= "RETSC exiting" VM-Execution control field is 1. So I wonder: How to que= ry VM-Execution control field in a programmable way? =20 BTW: On Intel Developer's Manual, it mentioned a method using IA32_VMX_PR= OCBASED_CTLS MSR, but this is just to report which bits can be set on pro= cessor-based VM-EXECUTION controls, rather than telling you the content o= f this structure. =20 Thanks! _________________________________________________________________ =CE=A2=C8=ED=B5=D8=CD=BC=C2=CA=CF=C8=CD=C6=B3=F6=BF=E7=B3=C7=CA=D0=B6=E0=B5= =E3=BC=DD=B3=B5=C2=B7=CF=DF=B2=E9=D1=AF=A3=A1 http://ditu.live.com/?form=3DMRAHAB&rtp=3Dpos.30.454167_116.308611_%E5%A4= %AA%E6%B9%96__~pos.29.554046_115.983427_%E5%BA%90%E5%B1%B1__~pos.29.11611= 1_110.478889_%E5%BC%A0%E5%AE%B6%E7%95%8C__&rtop=3D0~0~0&encType=3D1 --_405f51c4-fb12-4411-b3ab-5a1283a957b1_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi:
 
I intend to use RDTSC to make some time tests in Xen guest WinXP. However= , from Intel Developer's Manual I noticed that RDTSC will cause VMExit if= "RETSC exiting" VM-Execution control field is 1. So I wonder: How to que= ry VM-Execution control field in a programmable way?
 
BTW: On Intel Developer's Manual, it mentioned a method using IA32_VMX_PR= OCBASED_CTLS MSR, but this is just to report which bits can be set on pro= cessor-based VM-EXECUTION controls, rather than telling you the content o= f this structure.
 
Thanks!


MSN=B1=A3=BB=A4=B6=DC=A3=AC=CA=AE=B0=CB=B0=E3=CE=E4= =D2=D5=B1=A3=D5=CFMSN=B0=B2=C8=AB=A3=A1 =CF=D6=D4=DA=BE=CD=CF=C2=D4=D8=A3=A1 --_405f51c4-fb12-4411-b3ab-5a1283a957b1_-- --===============1382982646== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1382982646==--