Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752258AbcKIEZU (ORCPT ); Tue, 8 Nov 2016 23:25:20 -0500 Received: from mga07.intel.com ([134.134.136.100]:10800 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479AbcKIEZT (ORCPT ); Tue, 8 Nov 2016 23:25:19 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,612,1473145200"; d="scan'208";a="1570644" Message-ID: <1478665516.2533.2.camel@ranerica-desktop> Subject: Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions From: Ricardo Neri To: Andy Lutomirski Cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , X86 ML , "linux-doc@vger.kernel.org" , Andy Lutomirski , Andrew Morton , Borislav Petkov , Brian Gerst , Chen Yucong , Chris Metcalf , Dave Hansen , Fenghua Yu , Huang Rui , Jiri Slaby , Jonathan Corbet , "Michael S . Tsirkin" , Paul Gortmaker , Peter Zijlstra , "Ravi V . Shankar" , Shuah Khan , Vlastimil Babka Date: Tue, 08 Nov 2016 20:25:16 -0800 In-Reply-To: References: <1478585533-19406-1-git-send-email-ricardo.neri-calderon@linux.intel.com> <1478585533-19406-2-git-send-email-ricardo.neri-calderon@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 742 Lines: 25 On Tue, 2016-11-08 at 07:32 -0800, Andy Lutomirski wrote: > > diff --git a/arch/x86/include/asm/disabled-features.h > b/arch/x86/include/asm/disabled-features.h > > index 85599ad..4707445 100644 > > --- a/arch/x86/include/asm/disabled-features.h > > +++ b/arch/x86/include/asm/disabled-features.h > > @@ -16,6 +16,12 @@ > > # define DISABLE_MPX (1<<(X86_FEATURE_MPX & 31)) > > #endif > > > > +#ifdef CONFIG_X86_INTEL_UMIP > > ^^^^^ > > What's this? > > Let's try to do this with a minimum of configuration. My intention here is put in this file all the #if build configurations so that I don't have to put them other files by using functions such as cpu_feature_enable. Isn't this the intention of this file? Thanks and BR, Ricardo