Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751852AbcKGCL4 (ORCPT ); Sun, 6 Nov 2016 21:11:56 -0500 Received: from mga07.intel.com ([134.134.136.100]:63251 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbcKGCLs (ORCPT ); Sun, 6 Nov 2016 21:11:48 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,604,1473145200"; d="scan'208";a="188394444" Date: Mon, 7 Nov 2016 10:10:07 +0800 From: He Chen To: Borislav Petkov Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Luwei Kang , Piotr Luc Subject: Re: [PATCH v3] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest Message-ID: <20161107021007.GA28372@he> References: <1478243239-15586-1-git-send-email-he.chen@linux.intel.com> <20161104105235.qbqvmsv4ikajvjtu@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161104105235.qbqvmsv4ikajvjtu@pd.tnic> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1419 Lines: 47 On Fri, Nov 04, 2016 at 11:52:35AM +0100, Borislav Petkov wrote: > Please CC me on your future submissions, thanks. > Sure. > On Fri, Nov 04, 2016 at 03:07:19PM +0800, He Chen wrote: > > The spec can be found in Intel Software Developer Manual or in > > Instruction Set Extensions Programming Reference. > > This commit message is completely useless. Write commit messages in > the way as if you're explaining to another person *why* this change is > needed and that other person doesn't have an idea what you're doing. > My carelessness, will improve it in next patch. Thanks for kindly advices. > > Changes in v3: > > * add a helper in scattered.c to get scattered leaf. > > The modification to scattered et al without the kvm use should be a > separate patch. > Agreed. > > * Capabilities of Intel PT hardware, such as number of address bits or > > * supported output schemes, are cached and exported to userspace as "caps" > > diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h > > index 984a7bf..47978b7 100644 > > --- a/arch/x86/include/asm/processor.h > > +++ b/arch/x86/include/asm/processor.h > > @@ -137,6 +137,13 @@ struct cpuinfo_x86 { > > u32 microcode; > > }; > > > > +enum cpuid_regs_idx { > > cpuid_regs was just fine. > It should be, but I found it conflcts with `struct cpuid_regs` in `arch/x86/kernel/cpuid.c` since it got exported. Thanks, -He