Received: by 10.223.176.5 with SMTP id f5csp4219523wra; Tue, 30 Jan 2018 04:05:28 -0800 (PST) X-Google-Smtp-Source: AH8x226D+/GGiD0HzdgTMihR8HU1xaYiihWF0jA8qcm7s8LaNrK8EU3ysEap5FlZuhjtG/5sc7Dm X-Received: by 10.101.98.133 with SMTP id f5mr16519259pgv.357.1517313928075; Tue, 30 Jan 2018 04:05:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517313928; cv=none; d=google.com; s=arc-20160816; b=fIaZ+yAbcFLjwegv8KS8cArzUgbyKO3ShN5D+WFRgATOVt3j2s3EY0eWnR5b6EHcwn 8atmsQKDNEZ/BfuX8Bb2gp86RTKkqGSllHSnMkxid1d82d46lNsAn3jl8EuL9meaBjX2 OKOvPzzse4h6QfKj7C9BkkmzduIhAQyLBs2nXNCXYAGqa4TU5WC14BnbRZOSYe2cbdHD FF51vOPWmisTBwi2FgLbk02A8/Gxc1hDRALbRtg6Aj3SHMJAhhFQRM8nq3goEX0mZn5c B8XCY9UDTxmD8ipbK+QMBtqPLyfXFHEu+rboPCSHfgAmojKGBRrTX5YONh/0Rq7umpdG eRXQ== 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:arc-authentication-results; bh=4H7umlLvTetdjWynGKUDk3YReQ4d6UG5UllF2Y8WGg8=; b=sFd+ZlanVxY7ex45nWUIB2Gca25oR8c2FgywG9gTHfHku5BMLlLtGEnAySHaoF8Plq sPuYZEW1dZalRbtRPrf/KuDXt6Tz7CcvPJjLEvFV69zqvtuJjJA2tCr11LAEKouMDTQm jxoSvSquNaxI9QXdLh66XwILttlFkCTYw4nxxcqdW1zPKjD55VYLloTf0wzUz74dvD3K rq/4DWvB0aiz3oB1nOBrS6+Xx6eayEnzQpxzdgpta1gL2ghozgBXK9/yBV2UO58r+5Q3 LmFpYRNw3ukQPQ7dkX/CBDIsZKMiHFGlVDa/8lEVrXf1q7iTyxgSad2DtcHmhMI6k81o Cozw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9-v6si2032980plb.509.2018.01.30.04.05.13; Tue, 30 Jan 2018 04:05: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751639AbeA3MEQ (ORCPT + 99 others); Tue, 30 Jan 2018 07:04:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48772 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbeA3MEO (ORCPT ); Tue, 30 Jan 2018 07:04:14 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6799E780EC; Tue, 30 Jan 2018 12:04:14 +0000 (UTC) Received: from localhost (ovpn-116-57.gru2.redhat.com [10.97.116.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id F3C8A6EE69; Tue, 30 Jan 2018 12:04:10 +0000 (UTC) Date: Tue, 30 Jan 2018 10:04:09 -0200 From: Eduardo Habkost To: Linus Torvalds Cc: Arjan van de Ven , David Woodhouse , 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 , Radim =?utf-8?B?S3LEjW3DocWZ?= , Thomas Gleixner , Tim Chen , Tom Lendacky , KVM list , the arch/x86 maintainers , "Dr. David Alan Gilbert" Subject: Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure Message-ID: <20180130120409.GA26425@localhost.localdomain> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Fnord: you can see the fnord User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 30 Jan 2018 12:04:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 29, 2018 at 07:32:06PM -0800, 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. If Intel could do that, it would be great. > > 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? Yes. But note that the OS needs to be able to differentiate "old Skylake that doesn't support the new bit" from "newer Skylake that doesn't fall back om BTB". That's why I suggest a "non-Skylake bit" instead of a "Skylake bit". -- Eduardo