Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754646AbcKJI6k (ORCPT ); Thu, 10 Nov 2016 03:58:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:55770 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754305AbcKJI6i (ORCPT ); Thu, 10 Nov 2016 03:58:38 -0500 Date: Thu, 10 Nov 2016 09:58:34 +0100 From: Borislav Petkov To: Ricardo Neri Cc: Andy Lutomirski , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , X86 ML , "linux-doc@vger.kernel.org" , Andy Lutomirski , Andrew Morton , 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 Subject: Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions Message-ID: <20161110085833.zw6qgd7pshbni656@pd.tnic> 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> <1478748283.2551.5.camel@ranerica-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1478748283.2551.5.camel@ranerica-desktop> User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 856 Lines: 21 On Wed, Nov 09, 2016 at 07:24:43PM -0800, Ricardo Neri wrote: > I intended this feature to be configurable at build time in case someone > wants to build a kernel without it; similar to other features such as > SMAP. Is this not needed? Should Linux be built with this feature always > enabled? > > This feature could always be disabled via a kernel parameter, though; > even if Linux is built with it. It probably is a good idea to have it build-time configurable for the embedded folks. But you can do a before and after build and look at the vmlinux size and see how much it has grown. If it is only a couple of KBs I guess we can drop the config option even but I know there are people who still care about KBs too... -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --