From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Subject: Re: KVM PMU virtualization Date: Fri, 26 Feb 2010 14:32:44 +0100 Message-ID: <4B87CD7C.3050306@redhat.com> References: <4B86917C.4070102@redhat.com> <20100225173423.GB4246@8bytes.org> <20100226084241.GF15885@elte.hu> <4B87987A.2020302@redhat.com> <20100226104437.GB7463@elte.hu> <4B87AF44.9090702@redhat.com> <20100226114217.GI7463@elte.hu> <4B87C354.9020209@redhat.com> <20100226130656.GA2518@elte.hu> <4B87CCF5.6000209@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Ingo Molnar , Joerg Roedel , KVM General , Peter Zijlstra , Zachary Amsden , Gleb Natapov , ming.m.lin@intel.com, "Zhang, Yanmin" , Peter Zijlstra , Thomas Gleixner , "H. Peter Anvin" , Arjan van de Ven , Fr??d??ric Weisbecker , Arnaldo Carvalho de Melo To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57163 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936110Ab0BZNeX (ORCPT ); Fri, 26 Feb 2010 08:34:23 -0500 In-Reply-To: <4B87CCF5.6000209@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 02/26/10 14:30, Avi Kivity wrote: > On 02/26/2010 03:06 PM, Ingo Molnar wrote: >> That's precisely my point: the guest should obviously not get raw >> access to >> the PMU. (except where it might matter to performance, such as RDPMC) > > That's doable if all counters are steerable. IIRC some counters are > fixed function, but I'm not certain about that. I am not an expert, but from what I learned from Peter, there are constraints on some of the counters. Ie. certain types of events can only be counted on certain counters, which limits the already very limited number of counters even further. Cheers, Jes