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] boot_cpu_data differs between Xen hypervisor boot and no

To: Naresh Rapolu <nrapolu@xxxxxxxxxx>
Subject: Re: [Xen-devel] boot_cpu_data differs between Xen hypervisor boot and normal pv_ops kernel boot
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Wed, 31 Mar 2010 11:14:10 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Stephen Spector <stephen.spector@xxxxxxxxxx>
Delivery-date: Wed, 31 Mar 2010 11:14:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BB36A40.1080903@xxxxxxxxxx>
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: <4BB36A40.1080903@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.3
On 03/31/2010 08:29 AM, Naresh Rapolu wrote:

When I looked into the source code, arch/x86/kernel/cpu/perf_event.c, at run-time boot_cpu_data structure seems to differ in these two forms of booting. Due to this, Iam not able to use the hardware performance counters in my Xeon 5530 processor as hardware events(cache-misses etc) are being disabled.

Is there any reason for this ?

The PMU hardware features are not virtualized, and are not available to guest domains. I don't think Xen has much of a useful API to expose these features, though oprofile was working at one point.

I agree it would be very useful to work out how to get good "perf" support in a Xen domain.

(Stephen: It might be an interesting SoC project.)

    J

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

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