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] RE: intel core2 full virtualized performance counters

To: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] RE: intel core2 full virtualized performance counters
From: "Shan, Haitao" <haitao.shan@xxxxxxxxx>
Date: Mon, 29 Jun 2009 14:43:07 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Sun, 28 Jun 2009 23:44:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200906261458.54905.dietmar.hahn@xxxxxxxxxxxxxx>
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: <200906261458.54905.dietmar.hahn@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acn2XeCKu4Ba/utfSX+rcZMjO5pFVACJT9gg
Thread-topic: intel core2 full virtualized performance counters
Dietmar Hahn wrote:
> Hi list,
> 
> i played around with the full virtualized performance counters (vpmu
> stuff) on intel core2 processors in a HVM guest.
> I got something to work on the processor family=6 and model=15. But
> with newer processors (model=26 -> E5520 and model=29 -> X7460)
> nothing happens. 
> I searched a little bit in the sources and found in vpmu_initialise()
> that only for model 15 and 23 the  vpmu->arch_vpmu_ops gets
> initialized. 
> Is this missing or do I something wrong? Maybe anybody is working on
> this? Thanks in advance for all hints!
> 
> Dietmar.

The performance monitor facilities differ across CPU models. At the time vpmu 
is developed, model 15 and model 23 are the only two  models that are 
supported. The vpmu is designed to work with model-specific hanlding code. But 
actually no one adds new support for newer generation of CPUs.

I do not know how much differences between Core 2 PMU and Core i7. If you only 
collect performance data using architectural performance counters and events, I 
think it would be easy for you to hack the code in vpmu_initialize a bit to get 
it work.

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

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