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

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] RE: intel core2 full virtualized performance counters
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
Date: Mon, 29 Jun 2009 12:51:01 +0200
Cc: "Shan, Haitao" <haitao.shan@xxxxxxxxx>
Delivery-date: Mon, 29 Jun 2009 03:51:38 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=dietmar.hahn@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1246272666; x=1277808666; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20Dietmar=20Hahn=20<dietmar.hahn@xxxxxxxxxxxxxx> |Subject:=20Re:=20[Xen-devel]=20RE:=20intel=20core2=20ful l=20virtualized=20performance=20counters|Date:=20Mon,=202 9=20Jun=202009=2012:51:01=20+0200|Message-Id:=20<20090629 1251.01636.dietmar.hahn@xxxxxxxxxxxxxx>|To:=20xen-devel@l ists.xensource.com|Cc:=20"Shan,=20Haitao"=20<haitao.shan@ intel.com>|MIME-Version:=201.0|Content-Transfer-Encoding: =207bit|In-Reply-To:=20<61563CE63B4F854986A895DA7AD3C1770 9D9A78181@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>|References:=20<20 0906261458.54905.dietmar.hahn@xxxxxxxxxxxxxx>=20<61563CE6 3B4F854986A895DA7AD3C17709D9A78181@xxxxxxxxxxxxxxxxxxxxxx el.com>; bh=NucIf8DriWZwk1WnQXaltFZgL5PaghCWF6G3zfmKEyg=; b=T1nuECb5XpqDfazbGkyBs1v0WNkXH/9U705fd5o4pLzfkkKzVJBS2sWx EqIP7jmsZTG9n9ARdYC3NuBhP4wVzoYjA5/EnDRLYKMUqQXRTPVjYKZ6d evioPDIMP/wmq+lQLSTZqoHxiCUyUhxJHxJhod5AgqNZF0zaqcajSWAYI b6PnlRy2tsye+eZ9zYhuUplSmjqrnBEecyeKyMssDmI/AXfIhah8nKtqv Tn43viL4ITAgTWjdtbDhqvWDuMSVM;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent:Cc: References:In-Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id; b=JVGO6c6ou9ACaxjYN9QbBvUCKRVwIJnGdwY2VIKUFzS3YPNn9k8DRh93 xARv3DZl/G8JxDnVZoHhzATW5kpnY64Z4MoE8qV1I7RnfZEWb8izFICHP pfDyTmVBH9aeBG4wtMiEAB3Dgwc0gKqUY9DCby0uxrNSJyO1s/dRw4yvl JiJ8zzCxxc2N9wJ/ac1A9bQxZ+CC82mKkyUZjBDI7SzuAl5WM9pEec6Sb 38zxYCk/NIacVw0uK6pZYrt+kY3tN;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <61563CE63B4F854986A895DA7AD3C17709D9A78181@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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> <61563CE63B4F854986A895DA7AD3C17709D9A78181@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.11.90 (Linux/2.6.27.23-0.1-pae; KDE/4.2.90; i686; ; )
> 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.

This is a little bit surprising for me because I thought Intel did this for 
using their performance analyzer software such as vtune in HVM guest.

>
> 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.

Yes I did this and it works. Thanks.

Dietmar.

>
> 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>