Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868AbbEUEEr (ORCPT ); Thu, 21 May 2015 00:04:47 -0400 Received: from e28smtp09.in.ibm.com ([122.248.162.9]:46848 "EHLO e28smtp09.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751722AbbEUEEp (ORCPT ); Thu, 21 May 2015 00:04:45 -0400 Message-ID: <555D5902.1070300@linux.vnet.ibm.com> Date: Thu, 21 May 2015 09:33:14 +0530 From: Hemant Kumar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Scott Wood CC: maddy@linux.vnet.ibm.com, srikar@linux.vnet.ibm.com, peterz@infradead.org, linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, agraf@suse.de, mingo@redhat.com, paulus@samba.org, acme@kernel.org, warrier@linux.vnet.ibm.com, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v3 1/2] perf/kvm: Port perf kvm to powerpc References: <1431047266-6206-1-git-send-email-hemant@linux.vnet.ibm.com> <1431382120.16357.471.camel@freescale.com> <555224A4.5050502@linux.vnet.ibm.com> <1431487345.3868.2.camel@freescale.com> In-Reply-To: <1431487345.3868.2.camel@freescale.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15052104-0033-0000-0000-000005E2C9A1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2475 Lines: 68 Hi Scott, On 05/13/2015 08:52 AM, Scott Wood wrote: > On Tue, 2015-05-12 at 21:34 +0530, Hemant Kumar wrote: >> Hi Scott, >> >> On 05/12/2015 03:38 AM, Scott Wood wrote: >>> On Fri, 2015-05-08 at 06:37 +0530, Hemant Kumar wrote: >>>> diff --git a/arch/powerpc/include/uapi/asm/kvm_perf.h b/arch/powerpc/include/uapi/asm/kvm_perf.h >>>> new file mode 100644 >>>> index 0000000..30fa670 >>>> --- /dev/null >>>> +++ b/arch/powerpc/include/uapi/asm/kvm_perf.h >>>> @@ -0,0 +1,15 @@ >>>> +#ifndef _ASM_POWERPC_KVM_PERF_H >>>> +#define _ASM_POWERPC_KVM_PERF_H >>>> + >>>> +#include >>>> +#include >>>> + >>>> +#define DECODE_STR_LEN 20 >>>> + >>>> +#define VCPU_ID "vcpu_id" >>>> + >>>> +#define KVM_ENTRY_TRACE "kvm_hv:kvm_guest_enter" >>>> +#define KVM_EXIT_TRACE "kvm_hv:kvm_guest_exit" >>>> +#define KVM_EXIT_REASON "trap" >>>> + >>>> +#endif /* _ASM_POWERPC_KVM_PERF_H */ >>> Please make sure that anything book3s-specific is named that way. >> Are you suggesting to name it to something like _ASM_POWERPC_BOOK3S_PERF_H ? > My concern is seeing a generically named "kvm_perf.h" include a file > called "trace_book3s.h" which defines "kvm_trace_symbol_hcall" with > presumably book3s-specific content, as well as wondering how much of the > rest of the file would be applicable if booke PPC were to implement perf > kvm. > > I don't know enough about perf kvm to answer that question, but I've > seen enough cases of book3s or pseries specific code that was apparently > written with the belief that no other ppc64 implementations exist, or > that no other ppc implementations would want to implement a certain > feature, to be suspicous. Usually such cases can be dealt with after > the fact (albeit not as easily as if things were organized/namespaced > properly from the beginning), but this is uapi... > > -Scott > > > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev Tried to address your comments in v4 : http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg89490.html and http://www.mail-archive.com/linuxppc-dev@lists.ozlabs.org/msg89485.html -- Thanks, Hemant Kumar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/