From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Subject: Re: KVM PMU virtualization Date: Fri, 26 Feb 2010 14:34:43 +0100 Message-ID: <4B87CDF3.40304@redhat.com> References: <20100226084241.GF15885@elte.hu> <4B87987A.2020302@redhat.com> <20100226104437.GB7463@elte.hu> <4B87AF44.9090702@redhat.com> <20100226114217.GI7463@elte.hu> <4B87B5DE.30503@redhat.com> <20100226120750.GA11578@elte.hu> <4B87BC74.7050207@redhat.com> <20100226123850.GA19476@elte.hu> <4B87C6C4.3040407@redhat.com> <20100226131841.GC2518@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Avi Kivity , 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: Ingo Molnar Return-path: Received: from mx1.redhat.com ([209.132.183.28]:26187 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936110Ab0BZNhM (ORCPT ); Fri, 26 Feb 2010 08:37:12 -0500 In-Reply-To: <20100226131841.GC2518@elte.hu> Sender: kvm-owner@vger.kernel.org List-ID: On 02/26/10 14:18, Ingo Molnar wrote: > > * Avi Kivity wrote: > >> Can you emulate the Core 2 pmu on, say, a P4? [...] > > How about the Pentium? Or the i486? > > As long as there's perf events support, the CPU can be supported in a soft > PMU. You can even cross-map exotic hw events if need to be - but most of the > tooling (in just about any OS) uses just a handful of core events ... This is only possible if all future CPU perfmon events are guaranteed to be a superset of previous versions. Otherwise you end up emulating events and providing randomly generated numbers back. The perfmon revision and size we present to a guest has to match the current host. Jes