From: Balaji Rao Subject: Re: Performance monitoring units and KVM Date: Thu, 31 Jan 2008 00:44:10 +0530 Message-ID: <200801310044.11055.balajirrao@gmail.com> References: <87wsprxmyb.fsf@pike.pond.sub.org> <47A0BE8F.4090508@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: markus.armbruster-5C7GfCeVMHo@public.gmane.org, Andi Kleen , avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Wednesday 30 January 2008 11:56:25 pm Andi Kleen wrote: > There is no really an architectural PMU if you consider > boxes beyond relatively new Intel CPUs (which got one) > But since kvm runs only on such CPUs, it should not really be a problem in migrating between various Intel models at least. > But on the other hand in my experience most PMU users use > relatively simple few counters (e.g. 90+% likely the local > variant of CPU_CYCLES_NONHALTED) so it would be in theory > possible to translate those by traps from a different CPU's > format in the monitor into the local MSR. > > The only trouble is that is no architectural way to tell > the guest "i support only counter X Y Z" and also no > nice way to reject a particular counter except for just > not ticking. Can't this be exported through CPUID ? > regards, balaji rao ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/