Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1135978imu; Tue, 11 Dec 2018 13:21:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/VrM1GIlaJrFdIt3vOgBdnu5NKbzoRW4Cg29XEwsUeiFqHUkjjaEvArj/y19g7HusHHqBOv X-Received: by 2002:a62:47d9:: with SMTP id p86mr17429968pfi.95.1544563303763; Tue, 11 Dec 2018 13:21:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544563303; cv=none; d=google.com; s=arc-20160816; b=Kceg/2aBoWXEg/2ZCKu/NHgj70Ki/JnJOAM4+Ldo25YahSzu24IVOpJ65bVahkoFc/ LYEvTrI9xN7ssg1SFuBKtC3S9+RyX1lQCyBkukozi8KBsbAQ0Qhv/kLUBx7DyHbN9Ap+ cCiBwRik73mAuYANng8LWxz0yrEIb3CVrvSWIBCPY2RdFXnqB1usZcZd4uBFPdS2hhq/ jlo6Sp/xztNYFebLJYLGFR3QjgK8pyrwCPkzcUF1AdI/TD4Zfc1eG+EaVSoIkF9zVEJb Dg8u7JoIpaXI64x+X2KWfy3z3bPfMaoMu2D236IAJilNKQ52L2Pd/MXOgvSvo3fMn7lr kG7Q== 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=HDw6+0CtQh6zTBCYZ77G6/eUIzMvWFHPFTZNV9Tmoyw=; b=FeNrxMsw91cx7A9t0LuEoQR0jroRLKyu9KZFKE+3azsTVeHwd9Jt5tnt/YD8+JP5l/ 7RI2pj0fyuB71Z/zZZYKKCV8Vqr+Q/taWWzdXlGWqsSteSueF3IoDo1UldlyyiRNFKxK bSTLwf7ezPh9CgOB0QbTTtyfAr0LK2XwXLzWHOE0g7PICE0HdEsfxjFHP3FeWvsuKOZ5 whxQbFVyqYvN02S9nQtoHL6LFnaGi+rhT2hA6tG1khIQw2ZkNykZnMFyrwgeWcys9dGC rWoAndf4gdI0/P0fZot5hkd7tCZ1ZaedMrCRCkymsf6+7D+BDmwSMAI/1iDDYW+Js4W6 whhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=H2nlhSRB; 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 s191si14865686pfs.53.2018.12.11.13.21.28; Tue, 11 Dec 2018 13:21:43 -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=H2nlhSRB; 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 S1726300AbeLKVTx (ORCPT + 99 others); Tue, 11 Dec 2018 16:19:53 -0500 Received: from mail.skyhub.de ([5.9.137.197]:37362 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726136AbeLKVTx (ORCPT ); Tue, 11 Dec 2018 16:19:53 -0500 Received: from zn.tnic (p200300EC2BCD2B0010F6E1EC68D6BA6C.dip0.t-ipconnect.de [IPv6:2003:ec:2bcd:2b00:10f6:e1ec:68d6:ba6c]) (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 011A71EC028C; Tue, 11 Dec 2018 22:19:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1544563192; 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=HDw6+0CtQh6zTBCYZ77G6/eUIzMvWFHPFTZNV9Tmoyw=; b=H2nlhSRBf15m1AY2iNL6x7QuCd7DKNm+8kZBwVVLWz8TuWeXi7TrI4wDI54cKvrRsZrXsy WQV3/1xo2bwJs3K2+bv68bPcyKevvjOoLKkfrPOXej/ikCbjXFQn90Z0OhPY3NJOEsNHOv mdAlE0Xd1/Pty9AA/4vWmVcblI1YB8k= Date: Tue, 11 Dec 2018 22:19:44 +0100 From: Borislav Petkov To: "Lendacky, Thomas" Cc: "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Andrea Arcangeli , Konrad Rzeszutek Wilk , Jiri Kosina , Ingo Molnar , Thomas Gleixner , Tim Chen , David Woodhouse Subject: Re: [PATCH] x86/speculation: Add support for STIBP always-on preferred mode Message-ID: <20181211211944.GT27375@zn.tnic> References: <20181211190959.28321.56433.stgit@tlendack-t1.amdoffice.net> <3308b5d2-0c59-fa33-472b-f56633d39575@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3308b5d2-0c59-fa33-472b-f56633d39575@amd.com> 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:19:09PM +0000, Lendacky, Thomas wrote: > Alternatively, I can reuse SPECTRE_V2_USER_STRICT and issue pr_info_once() > to show that the method has been switched. This would reduce the changes > to the code, but then the sysfs information doesn't show the switch (which > may be just fine). You can still query X86_FEATURE_AMD_STIBP_ALWAYS_ON in stibp_state(), no? But yeah, forcing SPECTRE_V2_USER_STRICT on STIBP_ALWAYS_ON makes sense to me, with the already gazillion options we have :-\ -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.