Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752368AbeADSyl (ORCPT + 1 other); Thu, 4 Jan 2018 13:54:41 -0500 Received: from mga06.intel.com ([134.134.136.31]:10802 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751246AbeADSyk (ORCPT ); Thu, 4 Jan 2018 13:54:40 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,315,1511856000"; d="scan'208";a="21455268" Subject: Re: [PATCH 6/7] x86/spec_ctrl: Add sysctl knobs to enable/disable SPEC_CTRL feature To: Andrea Arcangeli , Borislav Petkov References: <4d4b3752e8e533201c6983d8473eea95c747ea33.1515086770.git.tim.c.chen@linux.intel.com> <20180104183345.od2o4hsfu2tv6nc4@pd.tnic> <20180104183826.GL13348@redhat.com> Cc: Tim Chen , Thomas Gleixner , Andy Lutomirski , Linus Torvalds , Greg KH , Andi Kleen , Arjan Van De Ven , linux-kernel@vger.kernel.org From: Dave Hansen Message-ID: Date: Thu, 4 Jan 2018 10:54:38 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180104183826.GL13348@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/04/2018 10:38 AM, Andrea Arcangeli wrote: >> And then, if at all, this needs to be connected to the retpolines fun, >> methinks, so that it can be decided at boot what to use. Yes, we need to reconcile this with the retpoline. I've tried to capture what we do where in here: > https://docs.google.com/document/d/e/2PACX-1vSMrwkaoSUBAFc6Fjd19F18c1O9pudkfAY-7lGYGOTN8mc9ul-J6pWadcAaBJZcVA7W_3jlLKRtKRbd/pub Any feedback on this, especially on the CPUs that aren't specifically covered would be welcome.