Received: by 10.223.176.46 with SMTP id f43csp23391wra; Tue, 23 Jan 2018 15:23:29 -0800 (PST) X-Google-Smtp-Source: AH8x225UxuZpWpLJcXD6V7wNukZDAieTLgmmltrLGWFqkihqwun4QDWjnzmn0JNS/Sb33zzVywnA X-Received: by 10.107.19.9 with SMTP id b9mr6336184ioj.251.1516749808950; Tue, 23 Jan 2018 15:23:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516749808; cv=none; d=google.com; s=arc-20160816; b=Mf2K7nYgtU9rMHp052/ijryDdIk0Y4dkennC6paLwJo1IVefLLWa+O9cFMerGWGwSM mnxolaIuankQn29CMTu/ot03PjfcOmbrM0ZvYaXY5yadWLoKGKaOaPW/6Ze2MLslJnEt yFtRd2IIB1b5EcAlLTSkQaB3FSqYhJ3qMdbxOzU1VFDmR+fRKhbt6MAwBXyB36Md9oxe 2m3NBSTdXtXUKciRR/cn8sg7JmiGoC8TLfXZ1tnB1Hrs5zbM7UTFnIR7ueIM2QN3zDp8 V2gfUXjYWbf33iDaUFJM4XqTLroMfMoDr/tPD+tSPxYaAU76ipZRBZf9GEQYwZHV12En 2aEQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=JZDJhEA/8Z22/qFyN55dZJ9mqT/vIGA0jDzmKH5b+L0=; b=uTd00HOXiF2s4BgrXqrNo6wM9ga7Xl6hJO6AdmUnPcEx/2jn/mXGvgEYUbxhJJrd0d ozp/WS+PQRR2FIyuW/r5FnnIVLbue/8djgsBdChZjaXYg/To1SO/WACrUNV6w6A3a23p sUG4tNvSQTAKIKEFkow9ctQtPrAZ2dYRs4yAqFKAkGcSC8aked4KxMf3Bb7ekyrNdpi/ /pkrX4WhSoM2CbuZ0ErDKL/9CkuKU1qTFM44WXiCzlayUgHSrl1ucxwvuRzs87ljt3ib g34fIpQGtzUL3dgXuiPrp2SZIBnoO/Ip6m4nW69z6z4ZRThpDOtIGa2NMIu83eJIOyPw Tclw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si16257871ioj.37.2018.01.23.15.23.16; Tue, 23 Jan 2018 15:23:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752028AbeAWXWr (ORCPT + 99 others); Tue, 23 Jan 2018 18:22:47 -0500 Received: from mga14.intel.com ([192.55.52.115]:5764 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbeAWXWp (ORCPT ); Tue, 23 Jan 2018 18:22:45 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jan 2018 15:22:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,403,1511856000"; d="scan'208";a="168610997" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.35]) by orsmga004.jf.intel.com with ESMTP; 23 Jan 2018 15:22:44 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 84651300D79; Tue, 23 Jan 2018 15:22:35 -0800 (PST) Date: Tue, 23 Jan 2018 15:22:35 -0800 From: Andi Kleen To: "Woodhouse, David" Cc: "thomas.lendacky@amd.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "ashok.raj@intel.com" , "Raslan, KarimAllah" , "arjan.van.de.ven@intel.com" , "arjan@linux.intel.com" , "bp@suse.de" , "tglx@linutronix.de" , "Janakarajan.Natarajan@amd.com" , "tim.c.chen@linux.intel.com" , "torvalds@linux-foundation.org" , "joro@8bytes.org" , "dan.j.williams@intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "aarcange@redhat.com" , "mingo@redhat.com" , "luto@kernel.org" , "pbonzini@redhat.com" , "gregkh@linuxfoundation.org" , "dave.hansen@intel.com" , "luto@amacapital.net" , "mhiramat@kernel.org" , "asit.k.mallick@intel.com" , "jun.nakajima@intel.com" , "labbott@redhat.com" , "rkrcmar@redhat.com" Subject: Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation Message-ID: <20180123232235.GT7844@tassilo.jf.intel.com> References: <1516476182-5153-1-git-send-email-karahmed@amazon.de> <1516476182-5153-10-git-send-email-karahmed@amazon.de> <243BE571-AF73-44B3-8D17-193F9E07686A@amacapital.net> <4e01a7a9-29e4-adcc-3f53-550fb7f3d370@amd.com> <1516724457.9521.156.camel@amazon.co.uk> <20180123224956.GQ7844@tassilo.jf.intel.com> <1516749276.13558.25.camel@amazon.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1516749276.13558.25.camel@amazon.co.uk> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 23, 2018 at 11:14:36PM +0000, Woodhouse, David wrote: > On Tue, 2018-01-23 at 14:49 -0800, Andi Kleen wrote: > > > Not sure.? Maybe to start, the answer might be to allow it to be set for > > > the ultra-paranoid, but in general don't enable it by default.? Having it > > > enabled would be an alternative to someone deciding to disable SMT, since > > > that would have even more of a performance impact. > > > > I agree. A reasonable strategy would be to only enable it for > > processes that have dumpable disabled. This should be already set for > > high value processes like GPG, and allows others to opt-in if > > they need to. > > That seems to make sense, and I think was the solution we were > approaching for IBPB on context switch too, right? Right. -Andi