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] Question about time measure in Guest Windows

To: <dan.magenheimer@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Question about time measure in Guest Windows
From: XuNanxuan <nanxuan_xu@xxxxxxx>
Date: Fri, 5 Dec 2008 06:03:35 +0000
Cc:
Delivery-date: Thu, 04 Dec 2008 22:04:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <25e69da7-1c09-4b06-8be4-5146a7d2035e@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: <BAY117-W459B641A267ED13B4597F5FE020@xxxxxxx> <25e69da7-1c09-4b06-8be4-5146a7d2035e@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks for your suggest!
 
But I have a further question about this issue: In my tests, I need to use some other instructions like RDTSC that may cause VMExit conditionally, one example is WBINVD which is another bit in VM-execution control field. From your advice, can I say that I can ignore all the bits of VM-execution control field in Xen? Otherwise, How to query VM-Execution control field in a programmable way?

Thanks!
Nanxuan

> Date: Thu, 4 Dec 2008 07:10:36 -0800
> From: dan.magenheimer@xxxxxxxxxx
> To: nanxuan_xu@xxxxxxx
> Subject: RE: [Xen-devel] Question about time measure in Guest Windows
>
> "RDTSC exiting VM execution control field" is available so that
> a hypervisor can trap ALL guest uses of the RDTSC instruction.
> Xen does not currently use this, so you can use RDTSC in a Xen
> Windows guest without worrying about it.
>
> HOWEVER, be aware that on many SMP machines, the TSC is not
> synchronized between processors and your guest may move between
> processors without its knowledge. So two consecutive reads
> of TSC by a guest may appear as if TSC is going backwards or
> jumps forward by many many ticks.
>
> -----Original Message-----
> From: XuNanxuan [mailto:nanxuan_xu@xxxxxxx]
> Sent: Wednesday, December 03, 2008 11:45 PM
> To: xen-devel@xxxxxxxxxxxxxx e.com
> Subject: [Xen-devel] Question about time measure in Guest Windows
>
>
> 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 query VM-Execution control field in a programmable way?
>
> BTW: On Intel Developer's Manual, it mentioned a method using IA32_VMX_PROCBASED_CTLS MSR, but this is just to report which bits can be set on processor-based VM-EXECUTION controls, rather than telling you the content of this structure.
>
> Thanks!




更多热辣资讯尽在新版MSN首页! 立刻访问!
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>