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] [PATCH 4/5][RFC] lwp: adding support for AMD lightweight

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 4/5][RFC] lwp: adding support for AMD lightweight profiling
From: "Huang2, Wei" <Wei.Huang2@xxxxxxx>
Date: Mon, 14 Feb 2011 11:04:19 -0600
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, KeirFraser <keir@xxxxxxx>, Gang Wei <gang.wei@xxxxxxxxx>
Delivery-date: Mon, 14 Feb 2011 09:06:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D5963C20200007800031D05@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/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: <4D5563D9.9060002@xxxxxxx> <4D59000A0200007800031B5E@xxxxxxxxxxxxxxxxxx> <EE335F95F28A664DB4A21289D2AA053BC60BA4B8@xxxxxxxxxxxxxxxxxxx> <4D5963C20200007800031D05@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvMYsck7ZxntoLQTH61afpVQyeV8gABgdqg
Thread-topic: [Xen-devel] [PATCH 4/5][RFC] lwp: adding support for AMD lightweight profiling
This might be possible. The frequency of MSR read/write inside guest VM will be 
less compared with vcpu context switch. I will try it in next spin.

-Wei

-----Original Message-----
From: Jan Beulich [mailto:JBeulich@xxxxxxxxxx] 
Sent: Monday, February 14, 2011 10:18 AM
To: Huang2, Wei
Cc: Gang Wei; xen-devel@xxxxxxxxxxxxxxxxxxx; KeirFraser
Subject: RE: [Xen-devel] [PATCH 4/5][RFC] lwp: adding support for AMD 
lightweight profiling

>>> On 14.02.11 at 16:55, "Huang2, Wei" <Wei.Huang2@xxxxxxx> wrote:
> No there is no quick way (like TS bit) to keep track LWP state. Here is an 
> excerpt from lwp spec:
> 
> "LWP does not support the "lazy" state save and restore that is possible for 
> floating point and SSE state. It does not interact with the CR0.TS bit. 
> Operating systems that support LWP must always do an XSAVE to preserve the 
> old thread's LWP context and an XRSTOR to set up the new LWP context. The OS 
> can continue to do a lazy switch of the FP and SSE state by ensuring that the 
> corresponding bits in EDX:EAX are clear when it executes the XSAVE and XRSTOR 
> to handle the LWP context."

I certainly wasn't thinking of CR0.TS, but after reading patch 5 my
question should have been re-phrased into whether the intercept
of the control MSR can't be used for tracking purposes.

Jan




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