Received: by 10.223.176.5 with SMTP id f5csp4349190wra; Tue, 30 Jan 2018 06:05:59 -0800 (PST) X-Google-Smtp-Source: AH8x225yfSF5zhYJyjJL4BRdHVzxEUNr/r50P+83nbY4K56+7e3u/hU9qQPUrvu5rki+184N74NI X-Received: by 2002:a17:902:7d8b:: with SMTP id a11-v6mr24824598plm.216.1517321159680; Tue, 30 Jan 2018 06:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517321159; cv=none; d=google.com; s=arc-20160816; b=EZyyxNRzE9HwAc7he9j/KS026/WgFEWitDPhgTPpwxqggnxApmV4BNBf0tNJD/VvpA bsmlPh5AiCo2Q/7TEolTU4ZtIOctDmWWp+SdT+KHCmeWKmKt17k1RBbu1GV6/7LKtKPB WaJQtUQfq3o8K7XE6mAPRwnidB5PdTABr/mfnafIny9ffXJOnO7YiL2oLfJn/aLogsFg bSxRb8kywjwrocQ0RejIPEL4ihJNcvvZkwV9y4xgH9+naGvIfjZQu6CPuOkMGNSm+e2x W6O90Fyx8Bh6XX95s7Kx8gJxS40Tp6EmzUFFO2Lxt4Tzq4URkT/jF1nzUwLJwX2mnKfo KV+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=0nxrpfpz1HsYwro92RMf0Huo8CcQhitWgViFKr5cPiI=; b=WdJhhxMiT0NmwTTpb577tZcBK3Eath+Aen948P7ady/0koVY98HH6+2dkj0xC+ep01 rBrv0Ix+pRmHfTShlgS0WJ6Z47D32Ws5sJHRi6JcZcXaGbZsnH+nqVwM7llSBgrsten3 YpsaE1wbJgNpjrkQTwLtcW4AJiSdrfK5Kekwf/DOsJaB1Nm5yTyk5v+QtfnZtnRHy/9Y iSDjyyAvwjptPTHFWqWeEE0aBkcmvo4clwaWZ823jJsx1FU83azbeEXvcsIm7C6CXQLD LzM9d4F/fFlu4wjSvz0RdTcXQyHvZoDHOlIbOuDbUJEEBWYGTiZGG7tIkGBIG/9PqHeZ iiAw== 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 t1-v6si102774plb.627.2018.01.30.06.05.45; Tue, 30 Jan 2018 06:05:59 -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 S1752721AbeA3NyT (ORCPT + 99 others); Tue, 30 Jan 2018 08:54:19 -0500 Received: from mga17.intel.com ([192.55.52.151]:10099 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101AbeA3NyR (ORCPT ); Tue, 30 Jan 2018 08:54:17 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2018 05:54:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,435,1511856000"; d="scan'208";a="30617469" Received: from avandeve-mobl.amr.corp.intel.com (HELO [10.252.141.77]) ([10.252.141.77]) by orsmga002.jf.intel.com with ESMTP; 30 Jan 2018 05:54:16 -0800 Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure To: Linus Torvalds Cc: David Woodhouse , Eduardo Habkost , KarimAllah Ahmed , Linux Kernel Mailing List , Andi Kleen , Andrea Arcangeli , Andy Lutomirski , Ashok Raj , Asit Mallick , Borislav Petkov , Dan Williams , Dave Hansen , Greg Kroah-Hartman , "H . Peter Anvin" , Ingo Molnar , Janakarajan Natarajan , Joerg Roedel , Jun Nakajima , Laura Abbott , Masami Hiramatsu , Paolo Bonzini , Peter Zijlstra , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , KVM list , the arch/x86 maintainers , "Dr. David Alan Gilbert" References: <1516476182-5153-6-git-send-email-karahmed@amazon.de> <20180129201404.GA1588@localhost.localdomain> <1517257022.18619.30.camel@infradead.org> <20180129204256.GV25150@localhost.localdomain> <31415b7f-9c76-c102-86cd-6bf4e23e3aee@linux.intel.com> <1517259759.18619.38.camel@infradead.org> <6c024f95-b12c-9c66-91d7-208ed2c380ff@linux.intel.com> From: Arjan van de Ven Message-ID: <012d6cd1-2dc1-4130-9ac8-9e966475d120@linux.intel.com> Date: Tue, 30 Jan 2018 05:54:15 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/29/2018 7:32 PM, Linus Torvalds wrote: > On Mon, Jan 29, 2018 at 5:32 PM, Arjan van de Ven wrote: >> >> the most simple solution is that we set the internal feature bit in Linux >> to turn on the "stuff the RSB" workaround is we're on a SKL *or* as a guest >> in a VM. > > That sounds reasonable. > > However, wouldn't it be even better to extend on the current cpuid > model, and actually have some real architectural bits in there. > > Maybe it could be a bit in that IA32_ARCH_CAPABILITIES MSR. Say, add a > bit #2 that says "ret falls back on BTB". > > Then that bit basically becomes the "Skylake bit". Hmm? we can try to do that, but existing systems don't have that, and then we get in another long thread here about weird lists of stuff ;-)