From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM PMU virtualization Date: Fri, 26 Feb 2010 13:47:01 +0200 Message-ID: <4B87B4B5.9070306@redhat.com> References: <4B86917C.4070102@redhat.com> <20100225173423.GB4246@8bytes.org> <20100226084241.GF15885@elte.hu> <4B87987A.2020302@redhat.com> <20100226104437.GB7463@elte.hu> <4B87AD89.60209@redhat.com> <20100226112638.GH7463@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Joerg Roedel , Jes Sorensen , 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]:38323 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935157Ab0BZLtS (ORCPT ); Fri, 26 Feb 2010 06:49:18 -0500 In-Reply-To: <20100226112638.GH7463@elte.hu> Sender: kvm-owner@vger.kernel.org List-ID: On 02/26/2010 01:26 PM, Ingo Molnar wrote: >> >>> By far the biggest instrumentation issue is: >>> >>> - availability >>> - usability >>> - flexibility >>> >>> Exposing the raw hw is a step backwards in many regards. >>> >> In a way, virtualization as a whole is a step backwards. We take the nice >> firesystem/timer/network/scheduler APIs, and expose them as raw hardware. >> The pmu isn't any different. >> > Uhm, it's obviously very different. A fake NE2000 will work on both Intel and > AMD CPUs. Same for a fake PIT. PMU drivers are fundamentally per CPU vendor > though. > > So there's no "generic hardware" to emulate. > That's true, and it reduces the usability of the feature (you have to restrict your migration pools or not expose the pmu), but the general points still stand. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.