Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1663850imu; Wed, 12 Dec 2018 02:03:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/WaI2tEoWx7TmVLzL+femVOGIqGjamif2N/eM1Fnd6YQaiG27nZBKeXTwopUoenC3Xb23h0 X-Received: by 2002:a17:902:76cb:: with SMTP id j11mr12007633plt.179.1544608992082; Wed, 12 Dec 2018 02:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544608992; cv=none; d=google.com; s=arc-20160816; b=IwkHFUTvHU8ut9Vcxg3quCaOxfYvQr//MOpeb92e+tq+RDv1/86euus6i4/El/QSAQ pLuTlVxkJjKemxQDzUM4mjf/DJ/N6diJIWBxfH/fI0mbsWwls/NwbemCOEExRaEjjE3l i7CPftPdxMpYhBg6Azb+5VV9TIKJX0FN+S+cSvTtuPicuRta3qekL5UvS5alwOZqQYwY xQOKT+dO3UdUovsHiCksotIxWRBRyspGtpa0WiMQMj8/eBlyQOLGdu+Tr7rpLfOluraD VgiEeMwfc7+JbKUby5HiHCCS44Yse+w/owxuP25lNpsK7CZw0S3hbtyuzSAUmIMvYVNM RnTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kCMnAg6KQ41PrBTldao0PLns3z+P7Bxi84CxeA2ECM4=; b=lT69tdyywmN4YS78grnEFwYvIOUu+P3vGH+X1zwRqzePJzsm1tM6gWp/3NUp2/vq5U zdU2Oag+5a7kTCHEiGFDpxGxn7PXpPCv/dqTZQCqYeLDQJROIsLwKOL0e9VWd9IfZREa SXQpulhoCdZwtNCvSSeRLdvKK2EJ0fn9UDcRyxa1YlI+YsU0O/MT5A6jVoO97bXJoMfj 1PQVMibHQgivnlgsDTiwVTD+D/V0xL8Ix07FYpmhPKjoGMVPx0KtQmaBDtC5vJWQ+O1z ge+8cC7Q+mGR1L3H3jupPOYwItlCzbxj50N+VZNGQXPv6BZ99NwYBc7CPR4YJjhINi4F k6Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=jm9jiu+M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23si13971270pgm.559.2018.12.12.02.02.53; Wed, 12 Dec 2018 02:03:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=jm9jiu+M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbeLLJ7s (ORCPT + 99 others); Wed, 12 Dec 2018 04:59:48 -0500 Received: from mail.skyhub.de ([5.9.137.197]:59110 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbeLLJ7s (ORCPT ); Wed, 12 Dec 2018 04:59:48 -0500 Received: from zn.tnic (p200300EC2BCDD8002DC08A63FFF8C6E5.dip0.t-ipconnect.de [IPv6:2003:ec:2bcd:d800:2dc0:8a63:fff8:c6e5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 64C851EC0432; Wed, 12 Dec 2018 10:59:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1544608786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=kCMnAg6KQ41PrBTldao0PLns3z+P7Bxi84CxeA2ECM4=; b=jm9jiu+MdBNL//yrYUnXeuRRPQ28V2KZYsmTwGIDCOmfhaW7SOT45knHgX/LhN/PyP7uHZ yJsjqe0zTx41zUmR6ut08XILQmkVCVAXd9AsDi+JwlABmt+asumonPHB0maB0ARdc6D3Y5 dzDxQmAsjZsce0rcFVD+ASSc7TXNSjA= Date: Wed, 12 Dec 2018 10:59:38 +0100 From: Borislav Petkov To: Thomas Gleixner Cc: "Lendacky, Thomas" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Andrea Arcangeli , Konrad Rzeszutek Wilk , Jiri Kosina , Ingo Molnar , Tim Chen , David Woodhouse Subject: Re: [PATCH v2] x86/speculation: Add support for STIBP always-on preferred mode Message-ID: <20181212095938.GA6653@zn.tnic> References: <20181211224615.5373.65736.stgit@tlendack-t1.amdoffice.net> <20181212000518.GX27375@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 11, 2018 at 07:37:26PM -0800, Thomas Gleixner wrote: > Hmmm. I've not seen the V1 of this (it's not in my inbox) but the v1->v2 > changes contain: You're on CC: https://lkml.kernel.org/r/20181211190959.28321.56433.stgit@tlendack-t1.amdoffice.net > > > > - Removed explicit SPECTRE_V2_USER_STRICT_PREFERRED mode > > Now I really have to ask why? > > Neither the extra variable nor the cpu feature check are pretty. An > explicit mode is way better in terms of code clarity and you get the proper > printout via spectre_v2_user_strings. Actually, now that I've slept on it, I think we should do this just like X86_FEATURE_IBRS_ENHANCED - as a modifier for SPECTRE_V2_CMD_AUTO or _FORCE options. And that has its own mode SPECTRE_V2_IBRS_ENHANCED. Makes sense? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.