Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp387973ybe; Thu, 12 Sep 2019 22:45:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC+AUE6yK/JC5DIQ9ERCZOajQjmqN5XSZy+hgVLfu1UH2p+VFFkcvWNwFg8BBpFYVSJQUF X-Received: by 2002:a17:906:3fc7:: with SMTP id k7mr38421996ejj.208.1568353522226; Thu, 12 Sep 2019 22:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568353522; cv=none; d=google.com; s=arc-20160816; b=SJT+8dkk4Jha9SXdYEhqvljMoDnWc6JP6Zn3zju6mpL0cZ3oscUV8Tct2ISHNeGWb6 C+VNRL1SHDV5RIFfHTc+j6YSOWKx0Xb+XbbWBms0OyHlpfyCFZdJ5SJfVejqQRlJMIya NbUMUPDcCS9hUhCPyXHr+FaO0qJLdsClTc/VXztoyWerM7i7EBhnjwzShfo2lNukI0Xq QgxYoz482IvG0mo2nFoj309wb85wHrbnPD73pGplXuS/86C35Y+54oES8I1fsOb6uNO2 KgIiipaRvJq3Yuf0xhAf9NmfWGms9X2//nb80docupgkvIzv+QOKDnLVh4dlCNe4bBEf ZFRA== 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=ppV5KcUiF1CGYToYGdU0wfK/H3e+utN032f5iiPzYJI=; b=rJP0oo+DyesEdpCIZoN1cBPrIbURwzsVMELSqW/v2wNj+2X8WydN6kuYLgmSJ70qqN hC9lj3kE+7HPb/4a5UMyhkkmgYcECEPncKmlZXhZrbOLv8sUlPRqfDtvMLIH9+Fz0hIK jKULGqj4Z/r7NJqqwtLLLcYofbOhRmwSwLgP2/tb+iJjN5KFE8oHveJFfEjYF0LvBDkS 423ch3pydNt9CBrmgGa/zZTVRs/NqXYS7l43hiBndVdCBTp8Bk6/hyWfrqDhrjSLRnh3 ShmzklhRB4LtwFiHzvHnOFZm0HIIU6oanUiGlnvihEbb6iF1/iLZ6MFmnt/rdf2Z0lSR 39fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=f3szeRJX; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lw10si13941102ejb.324.2019.09.12.22.44.58; Thu, 12 Sep 2019 22:45:22 -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=@gmail.com header.s=20161025 header.b=f3szeRJX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726558AbfIMFmB (ORCPT + 99 others); Fri, 13 Sep 2019 01:42:01 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40776 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfIMFmA (ORCPT ); Fri, 13 Sep 2019 01:42:00 -0400 Received: by mail-wm1-f67.google.com with SMTP id m3so1271944wmc.5 for ; Thu, 12 Sep 2019 22:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ppV5KcUiF1CGYToYGdU0wfK/H3e+utN032f5iiPzYJI=; b=f3szeRJXJ3wJoTpbV2bf+5DwUxTMNlZ1KtkL8aOHMBwt6sQRnv0Axno86oGWlQMOBS za8ZxC5kq1+GdnSDV238IgFg3JY9vzwcahSgRPGHG6qf2p4IlzKIjjMl6BlJHwCrmlCF NjdpDOPj+K4I88b5IDhidX4Cza7WOvTdeXMWehdqDHL9TE+zI5XuYOPCZpXEWbF+CzZ0 RvpMCS5taR8au6bzOGJQAOS/NA5W4EQTUdkM26zJ7T6DYqymkArOFNfP3aZgpy06n+yn mQioWPJm/Wm4+6hJT2Nsu0/mFFlh1RMADuWS0/IYTRG9gRVt+KvumVwXNYUMBbFe8bD+ Wpvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=ppV5KcUiF1CGYToYGdU0wfK/H3e+utN032f5iiPzYJI=; b=H3CUGQfrpTBX91vpZtsCMudr8h1vlAxG32j3qh0mGvmux5RDx6nceBKEnKbJx6wuh2 5AtCbI3KOihaWtYcZyVH1RUo46kbs+7d4KWXiOR+0WRZ409NfJqgmeJNDTWRS+1w6VpA qqY2IReiQXvcXMpVU4OXEC9p9l3ORIzdbb4GI8Po9TDNum1nS3u0YspLM5vRaP0iNaCk 9w6xML8hqLCYsXKwJfBeG3PJnB/3rXPJm+4NUU94SFaTI1OOXK4TpSzq97bbY3yrmrRf 0r+0lZxyZbAzGzIFN2UcKzw7M0cVlPYVcmfeGDbXu+XVc+YsRDGqyw8tpfEtp4//fAXq PJzQ== X-Gm-Message-State: APjAAAWSXtPu67A/NlMKvE/hpOOhvbBoFQPPgAZZvbX80RYFbKRzJJ7r 2lAM9ocfs6nbh9V+K9lILLk= X-Received: by 2002:a7b:cc82:: with SMTP id p2mr1661963wma.165.1568353318563; Thu, 12 Sep 2019 22:41:58 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id t6sm2097971wmf.8.2019.09.12.22.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2019 22:41:57 -0700 (PDT) Date: Fri, 13 Sep 2019 07:41:55 +0200 From: Ingo Molnar To: Rasmus Villemoes Cc: Miguel Ojeda , ndesaulniers@google.com, Masahiro Yamada , Greg Kroah-Hartman , Ingo Molnar , Linus Torvalds , Nadav Amit , x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov Subject: Re: [PATCH v3 5/6] x86: alternative.h: use asm_inline for all alternative variants Message-ID: <20190913054155.GA118828@gmail.com> References: <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190912221927.18641-1-linux@rasmusvillemoes.dk> <20190912221927.18641-6-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190912221927.18641-6-linux@rasmusvillemoes.dk> 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 * Rasmus Villemoes wrote: > Most, if not all, uses of the alternative* family just provide one or > two instructions in .text, but the string literal can be quite large, > causing gcc to overestimate the size of the generated code. That in > turn affects its decisions about inlining of the function containing > the alternative() asm statement. > > New enough versions of gcc allow one to overrule the estimated size by > using "asm inline" instead of just "asm". So replace asm by the helper > asm_inline, which for older gccs just expands to asm. > > Signed-off-by: Rasmus Villemoes Acked-by: Ingo Molnar Thanks, Ingo