Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp1195629oof; Tue, 25 Sep 2018 09:28:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV60NBJLC/6US+TfHCtRkqm2o1ZauVB792O8Hg1KJ3B0A/ViWKoZ0zTXHMua9XWy34cqqintK X-Received: by 2002:a62:1a16:: with SMTP id a22-v6mr1874941pfa.237.1537892881199; Tue, 25 Sep 2018 09:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537892881; cv=none; d=google.com; s=arc-20160816; b=Sn+ZDBTG8PQ2UO7r2MMjWi0chCq67ZWVSIjk0X7LALnaB3CyDCwPY0Qh66MCY+0TRR Z8UzGjxUiLizPFItDVHBXnU6X4dccj/Lxrbu5d5cYGiEvVVUWgGrb4+i+gXmXBX26Tfp TGRcPjfuL+pQ25drNJHGFEzz5suks+QFTi6DbxVhZwBllbZT+UrUcWNAVNhQ2Qn/EaHH 9Gl9o7uXoT+hcxk9U/cYHAA09fIVtYQ7JOh9oglwpBjoSp5RxeXugEYx7l3ZdR1N1+0o 3awu1qiyZSdedMUx7nr3mk5PTlQTU8m6fZ4Hm6vAuGURBvUTNIm3ZOqxFDIAeidYWDmx S8+A== 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=KnpYBxNAh061QW52EVkyYMXjgF83hGim+6fQGH4NYlg=; b=Vq1ZKj9LLoY4rfkdjVYMHjxTwdeQC/Ao3qOqese+d5S8YQSx0CY5/rMde+cgnU5A4v yjksWqy4N1lqtNaTL6aR3V6FYOptsz2wRK613AmQudRS1eXG91K93RPllUeDKz7moekq Uptw7KriSB650VkxFE3klWI+DDMY5f8OFieujfUmlFFJQ/ngO3Cs7VkQQwo3LeH8Y48a Rz1ukDpH/Fbqpx8vI0ai4Jbt4DqnbSDhVNYuTdnQxRl+vGOi//OsEDUD8xAiDQ5VJONJ RU9cZw9i8/j1VfTm33FGxLpAO/jwvXj61zKSEkyrHUrVVA+T/2aJS4M74eoZSBIp8CzE +xYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ImCJAzEb; 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 h34-v6si2867845pld.135.2018.09.25.09.27.45; Tue, 25 Sep 2018 09:28:01 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ImCJAzEb; 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 S1727347AbeIYWfy (ORCPT + 99 others); Tue, 25 Sep 2018 18:35:54 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50950 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727023AbeIYWfy (ORCPT ); Tue, 25 Sep 2018 18:35:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KnpYBxNAh061QW52EVkyYMXjgF83hGim+6fQGH4NYlg=; b=ImCJAzEb15quG2qNOO0kH9GwG Ljdbt6fNZRe/3j9pGg/bYdXiYa23+B8z73kinhIX50YyzEYii75+HpX+fJX/zyH/POxJypLuEjH5B MTEUrZzg999iv/ywBnt3JRhdOxDMvZwTIazWREJ5QQSoQQctmRgdTCYCz4OIIT47Gle7REnoBljt+ AOvnusMmb1pZDzYYS/ukWZmP7WtF7T7PYQ+TOpF0rYnykdrRzpuQlywuNr+UPW2OYPTYc+pDK2KM3 n2ho0IP0f8x1mvtVSKvHhbLXZ9G46myLtfUQyVvF4tbF2w5w1rGuTjZvxZSXvZPWmA5OdKqFL7iNa kkKA+y1CA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g4qB0-0002S2-U1; Tue, 25 Sep 2018 16:27:27 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6D09E20289D14; Tue, 25 Sep 2018 18:27:05 +0200 (CEST) Date: Tue, 25 Sep 2018 18:27:05 +0200 From: Peter Zijlstra To: Yu-cheng Yu Cc: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Subject: Re: [RFC PATCH v4 01/27] x86/cpufeatures: Add CPUIDs for Control-flow Enforcement Technology (CET) Message-ID: <20180925162705.GB30146@hirez.programming.kicks-ass.net> References: <20180921150351.20898-1-yu-cheng.yu@intel.com> <20180921150351.20898-2-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180921150351.20898-2-yu-cheng.yu@intel.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 Fri, Sep 21, 2018 at 08:03:25AM -0700, Yu-cheng Yu wrote: > diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c > index 772c219b6889..63cbb4d9938e 100644 > --- a/arch/x86/kernel/cpu/scattered.c > +++ b/arch/x86/kernel/cpu/scattered.c > @@ -21,6 +21,7 @@ struct cpuid_bit { > static const struct cpuid_bit cpuid_bits[] = { > { X86_FEATURE_APERFMPERF, CPUID_ECX, 0, 0x00000006, 0 }, > { X86_FEATURE_EPB, CPUID_ECX, 3, 0x00000006, 0 }, > + { X86_FEATURE_IBT, CPUID_EDX, 20, 0x00000007, 0}, ^^ missing white space at the end there. > { X86_FEATURE_CAT_L3, CPUID_EBX, 1, 0x00000010, 0 }, > { X86_FEATURE_CAT_L2, CPUID_EBX, 2, 0x00000010, 0 }, > { X86_FEATURE_CDP_L3, CPUID_ECX, 2, 0x00000010, 1 }, > -- > 2.17.1 >