From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH] perf/x86: Fix HO/GO counting with SVM disabled Date: Wed, 29 Feb 2012 14:24:10 +0100 Message-ID: <20120229132410.GB10684@amd.com> References: <20120227182325.GA12302@8bytes.org> <1330444544-15665-1-git-send-email-joerg.roedel@amd.com> <4F4D0DD6.9030302@redhat.com> <4F4D10A9.5010707@gmail.com> <4F4D111A.8020001@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: David Ahern , , , , Peter Zijlstra , Ingo Molnar , Stephane Eranian , Gleb Natapov , Robert Richter To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4F4D111A.8020001@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, Feb 28, 2012 at 07:38:34PM +0200, Avi Kivity wrote: > On 02/28/2012 07:36 PM, David Ahern wrote: > > I was to suggest the reverse: since this patch addesses an AMD bug, > > why not push those functions into perf_event_amd.c and make them > > dependent on CONFIG_CPU_SUP_AMD as well. > > It depends on which direction you expect the code to grow. These hooks > seem reasonable, so I think they should be generic. Okay, I am fine with both directions. But since this patch is a fix in the first place I make it more AMD specific for now. If we need this as a generic feature it can easily be changed back. Joerg -- AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632