From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: KVM PMU virtualization Date: Fri, 26 Feb 2010 15:49:02 +0100 Message-ID: <1267195742.22519.620.camel@laptop> 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" Content-Transfer-Encoding: 7bit Cc: Ingo Molnar , Jes Sorensen , Joerg Roedel , KVM General , Zachary Amsden , Gleb Natapov , ming.m.lin@intel.com, "Zhang, Yanmin" , Thomas Gleixner , "H. Peter Anvin" , Arjan van de Ven , Fr??d??ric Weisbecker , Arnaldo Carvalho de Melo To: Avi Kivity Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:53550 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964908Ab0BZOtL (ORCPT ); Fri, 26 Feb 2010 09:49:11 -0500 In-Reply-To: <4B87CCF5.6000209@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, 2010-02-26 at 15:30 +0200, Avi Kivity wrote: > > Even if there were no security considerations, if the guest can observe > host data in the pmu, it means the pmu is inaccurate. We should expose > guest data only in the guest pmu. That's not difficult to do, you stop > the pmu on exit and swap the counters on context switches. That's not enough, memory node wide counters are impossible to isolate like that, the same for core wide (ANY flag) counters.