Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932740AbcKILnx (ORCPT ); Wed, 9 Nov 2016 06:43:53 -0500 Received: from mail-vk0-f41.google.com ([209.85.213.41]:34458 "EHLO mail-vk0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753148AbcKILDO (ORCPT ); Wed, 9 Nov 2016 06:03:14 -0500 MIME-Version: 1.0 In-Reply-To: <1478665516.2533.2.camel@ranerica-desktop> 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> <1478665516.2533.2.camel@ranerica-desktop> From: Andy Lutomirski Date: Wed, 9 Nov 2016 03:02:53 -0800 Message-ID: Subject: Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions To: Ricardo Neri 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 899 Lines: 27 On Tue, Nov 8, 2016 at 8:25 PM, Ricardo Neri wrote: > 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? What I mean is: why does this need a config option at all? --Andy