Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5073215imm; Tue, 18 Sep 2018 04:01:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZK1y6FJ0zkK21AyayeygUSY8UJ5BenFZWcs/BAgwWXw3VcA9IC4P7A/MohfTXiNJDCba8S X-Received: by 2002:a65:6455:: with SMTP id s21-v6mr27900701pgv.25.1537268516154; Tue, 18 Sep 2018 04:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537268516; cv=none; d=google.com; s=arc-20160816; b=uJQ4bWY/uNT9KxAT2hBXExCzkoF1F7/jY3ZqtTfwTJ0fbicXQ2LXwT+CCJXdwPu9wg d2X4k2JrGtwpvD8WjXVgd2PtIGWavwcFRxrgi1g+gpqKjVRN9do2TfA+CGcFD6wJw/Oo MGr07bV1lrQ7/ZVBA5ZISUm5HwRuk+TSrbrnQzogkEBsOn7OxlEJDV+g4/XIbarp5GoB LDa3LymR2lZXmJ5P3WB3M7fT9NTTAGaRogiJwgPw85BxZ8JRo8mSvF+rf2oUPk3oCNCB 4gkmmIvjuUvWb1Rx+adP5bSaZv6BiTN63VekAb9y/oIm86Veh7lFGzg29NZL8BlC2P+r w95w== 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=XXw5MMSAslYRw1sdTAgtXUe+a2iOZUaK+WDjFgJtZbI=; b=lfzOVuH+0jQoB3HWgODrrwNXc6CTztVqDSJIGNtVMRse1WjJ4ICShk6p4EbPTZFkhn 4jVbdSWqpkIXuA0D3ehoWh9/fSXhlMqI/Ft9aKaZjC1+7drFksRHFw1CKT94hEdT7ug2 t/qje2sbpk2FNob3Csz+ZETPSN+IZ2AYFo67YCw4jC6QfsKCubQv1x9z+vF/enCmXUQJ hul8umu28tw5yFcr/qldHfbxYfvSW/kqk2+o4bPXqp6f9vMDO/uWGVBoocBMvIXHu4Hc 6Yb8wJTIrEcvL19f5cj8hYOrvrmBtnDLjalHQLhQ7sSWV86ZkqzKETtCsiMT+LXwme1Y W4aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="Y/x1eyy7"; 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 h30-v6si18157048pgb.269.2018.09.18.04.01.40; Tue, 18 Sep 2018 04:01:56 -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="Y/x1eyy7"; 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 S1729626AbeIRQb4 (ORCPT + 99 others); Tue, 18 Sep 2018 12:31:56 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:54652 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729285AbeIRQb4 (ORCPT ); Tue, 18 Sep 2018 12:31:56 -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=XXw5MMSAslYRw1sdTAgtXUe+a2iOZUaK+WDjFgJtZbI=; b=Y/x1eyy7T9I0kzXWwJnniAG5v eaVjL+TDDUscbDjzFQCPFBtXIOzifH9rYfICgRhbY8uy9lfLYZ37U6RlNLadwzJDh8AB4+a3kq8w2 ytgzGRjN4JrJIMWnfzHhGRxBy2igzuZqeLekqt16cFVNUiGwuJ1J2gL0Tc1VXrY8aLeIPm0ROvk4T gKgTAzsa09TlGmWKRoiaArXPEcN2Zb3JWd4CYFuQ1Cp2ZYuqLdlWcm0CboJyigoBeXsHKXy+qUhOA ioq+COXPd6xINMbNH6zDDJE9k3Afdxorb1RMa4QAXQQo5rNykmEiYw3WzrrZ38DJDXi0NNOpmFIKd OElGdxw3w==; 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 1g2DjL-00043N-4K; Tue, 18 Sep 2018 10:59:43 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 65DB4202C1A38; Tue, 18 Sep 2018 12:59:39 +0200 (CEST) Date: Tue, 18 Sep 2018 12:59:39 +0200 From: Peter Zijlstra To: Zhenzhong Duan Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, konrad.wilk@oracle.com, x86@kernel.org, dwmw@amazon.co.uk, tglx@linutronix.de, Srinivas REDDY Eeda , bp@suse.de, hpa@zytor.com, dhaval.giani@oracle.com Subject: Re: [PATCH] x86/speculation: Use AMD specific retpoline for inline asm on AMD Message-ID: <20180918105939.GK24106@hirez.programming.kicks-ass.net> References: <87411705-893f-46d3-b899-b09ed9fa8d1b@default> <20180918095015.GE19234@hirez.programming.kicks-ass.net> <3fcc1453-1618-9a79-71c9-5eede0023775@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3fcc1453-1618-9a79-71c9-5eede0023775@oracle.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 18, 2018 at 06:31:07PM +0800, Zhenzhong Duan wrote: > On 2018/9/18 17:50, Peter Zijlstra wrote: > > On Mon, Sep 17, 2018 at 10:17:30PM -0700, Zhenzhong Duan wrote: > > > -#elif defined(CONFIG_X86_32) && defined(CONFIG_RETPOLINE) > > > +#elif defined(CONFIG_RETPOLINE) > > > > This doesn't make any sense.. > This change is used for x86_64 to have minimal Retpoline support when > CONFIG_RETPOLINE is defined but RETPOLINE isn't defined, or I missed > something? No it doesn't. #if defined(X86_64) && defined(RETPOLINE) /* x86_64 retpoline goes here */ #elif defined(RETPOLINE) /* !x86_64 retpoline goes here */ #else /* !retpoline goes here #endif