Received: by 10.223.176.46 with SMTP id f43csp1040405wra; Fri, 26 Jan 2018 10:50:14 -0800 (PST) X-Google-Smtp-Source: AH8x225LKDqRb0q9VNypW9AhhMU+uALPQywH41KPvLwys489DXjTz5MUplc0QceuGBSFmJkL+XU8 X-Received: by 10.98.215.30 with SMTP id b30mr20130155pfh.50.1516992614785; Fri, 26 Jan 2018 10:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516992614; cv=none; d=google.com; s=arc-20160816; b=hexVuYT/Jyt9cGun5g1pxtC/gz6KvMqD/t/CODZfCiXzp0ZZb9vjnGcjPZuc3sKr5x 9DNKbO4QcODlNVKbHc0qEOmiNDdbbjEGNMEIDKoZmSzwxgFIH5q/vCIEudi7XuXX8Z+b TdRYVBg/T3Rlw8LKZ+DqdfT8nF8mRTe6AgYFeNhx0pDswx3lEp/4j2G/1soH54RBW7TT yfOo6mRKffqtgzBeoMqnrqWjVljPMPqgEoe/d5DVMDjESdOgGdtBH3W0nxFNNhPZrs9d lpJX2/tKeFIhUwJtwXrSMa8K4hU3uVtlTcdN+EPApkYMnYG60Wlfh9qb8ZaRSCbHoaMe s55g== 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=ZQ8hRU45g7rW8rM4BNHNZvgoLXkB7a7vqR4ZnemfVBE=; b=xUc6xxWiS6piSUC7jZGhrlSl+LwiwTysCWDVhnbz1IFXCQhgnF78YhrhHqW3/kTLgC FKb6AqnMwLVije4Tp+viNplL8AWLbO3lC6RCdfapDc1uM+acri77C/+QBU/Mmt9rvqdf WL6HzUuJgTYdeMnYias8ad45hymvPV9gyLWDU4lETqmWgrFleBbY+FR5FKVIna3hV5DF 9E4pJg7H33a1TswRlPncIha9OqDtZZwcWopN88luoc8SkxwBlm43jrDBpAmG39aUoK+L Ip2JIEhMVQuddHD5zkNVIWfC8M9r+9QNiqAj0uUCnc4RaoeG4OV9tNcisPOgDED5YWaW C4kQ== 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 y5-v6si3438690plr.145.2018.01.26.10.50.00; Fri, 26 Jan 2018 10:50:14 -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 S1752215AbeAZSt1 (ORCPT + 99 others); Fri, 26 Jan 2018 13:49:27 -0500 Received: from mail.skyhub.de ([5.9.137.197]:44712 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbeAZSt0 (ORCPT ); Fri, 26 Jan 2018 13:49:26 -0500 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id n9BrNj6kvcmO; Fri, 26 Jan 2018 19:49:25 +0100 (CET) Received: from pd.tnic (p200300EC2BCF3A0024194793E6CFFC7A.dip0.t-ipconnect.de [IPv6:2003:ec:2bcf:3a00:2419:4793:e6cf:fc7a]) (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 20CAB1EC034B; Fri, 26 Jan 2018 19:49:25 +0100 (CET) Date: Fri, 26 Jan 2018 19:49:15 +0100 From: Borislav Petkov To: David Woodhouse Cc: x86-ml , linux-tip-commits@vger.kernel.org, hpa@zytor.com, gregkh@linuxfoundation.org, tglx@linutronix.de, thomas.lendacky@amd.com, linux-kernel@vger.kernel.org, mingo@kernel.org Subject: Re: [PATCH] x86/cpufeatures: Cleanup AMD speculation feature bits Message-ID: <20180126184915.ioqewp56orj2qhrt@pd.tnic> References: <1516896855-7642-4-git-send-email-dwmw@amazon.co.uk> <20180126184139.rcfbtk7dvj7kmyfn@pd.tnic> <1516992318.30244.271.camel@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1516992318.30244.271.camel@infradead.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 26, 2018 at 06:45:18PM +0000, David Woodhouse wrote: > On Fri, 2018-01-26 at 19:41 +0100, Borislav Petkov wrote: > > +#define X86_FEATURE_AMD_IBPB           (13*32+12) /* "" Indirect Branch Prediction Barrier MSR */ > > Stray quotes. No no, those quotes are magical. :) They don't show the string in /proc/cpuinfo, see arch/x86/kernel/cpu/mkcapflags.sh > > +#define X86_FEATURE_IBRS               (13*32+14) /* Indirect Branch Restricted Speculation */ > > Please don't call it that. Call it X86_FEATURE_AMD_IBRS and leave > X86_FEATURE_IBRS to parallel X86_FEATURE_IBPB as the *software* bit > which is vendor-independent. Do we have a X86_FEATURE_IBRS bit? If so, then this bit should become #define X86_FEATURE_AMD_IBRS (13*32+14) /* "" Speculation Control MSR only (AMD) */ *with* the magic quotes. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.