Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752680AbeADSzR (ORCPT + 1 other); Thu, 4 Jan 2018 13:55:17 -0500 Received: from mail.skyhub.de ([5.9.137.197]:51316 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbeADSzQ (ORCPT ); Thu, 4 Jan 2018 13:55:16 -0500 Date: Thu, 4 Jan 2018 19:55:14 +0100 From: Borislav Petkov To: Andrea Arcangeli Cc: Tim Chen , Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Greg KH , Dave Hansen , Andi Kleen , Arjan Van De Ven , linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/7] x86/spec_ctrl: Add sysctl knobs to enable/disable SPEC_CTRL feature Message-ID: <20180104185514.spfj4novp5sbud3r@pd.tnic> References: <4d4b3752e8e533201c6983d8473eea95c747ea33.1515086770.git.tim.c.chen@linux.intel.com> <20180104183345.od2o4hsfu2tv6nc4@pd.tnic> <20180104183826.GL13348@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180104183826.GL13348@redhat.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 04, 2018 at 07:38:26PM +0100, Andrea Arcangeli wrote: > Consolidating in arch/x86/kernel/spec_ctrl.c would allow removing that > export. > > Here I've got: > > static DEFINE_MUTEX(spec_ctrl_mutex); Yap. > Turning this off at any time is very easy, making reptoline runtime > disabled is more difficult. So dwmw2 is doing alternatives. Seems workable to me. Also, you don't want to slap all those different settings in front of the user and then expect her to do an informed choice in all cases. So it should be a very simple first set of choices what to set and then add more only when really needed and when it really makes sense. IMO. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.