Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2271019pxp; Mon, 21 Mar 2022 15:30:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAPEwuYRMWazrGXY8Hn3hHu1jEQ+87hPybD8pP6TY0omNR/hl9xHjT0dA0SJnz/YmqlICI X-Received: by 2002:a05:6a02:197:b0:382:a4b0:b9a8 with SMTP id bj23-20020a056a02019700b00382a4b0b9a8mr2791818pgb.325.1647901815572; Mon, 21 Mar 2022 15:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647901815; cv=none; d=google.com; s=arc-20160816; b=wBMhk+guGadwspMaHg+KmnsKZkjeEyxFC2pV+uk4CofKMMXTq9NLV0M59I+DBoanO2 FQi+YHInu5SqzxgJzhnnhKOu6iOwYycA9dhzKbcuUZO2Xp676XmHTYhnaeGH5NiJQ4Hm PpFImjaJU/rcv44AZfLPSbq36SwqDVXFdYQnJcSYdOP+OHFVkqNOB13P66AoXEyzpYX1 R/uHHGd4wp6toTz4mVAfSw9KzKzp0wKSQkWfLKVvrDviQfyUI40YZ9NuTKSuSZZ9nYtt rtMOknyUjpF3IOUIhJ708ws8OAcH2LbXJR0PLltDZhtnJIqZlDzRoZFYynhCPSwOtLwm IcAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=eQmUnf4BQ6Am5omHpUeOWcJu4ubjTaOa1UmiRCl9H4A=; b=Ng6T+77pFTDXivG/RjH+CfWTiqDLAxWFsi83eybynrW3B+qwiSjQpc0hkuv/OAKLgl WMCfhXGtFEBvZuNbfalDguLhvWVX4DyZ9lq1Y9pGN17FXuVy8UgRYeMGW23tnakli7l8 H8BYORlk6moUT+0TTO5fXIpNl26beNQyecTqhuBEwQIYOnZzd+dGeuxD8U3MaG2Gmp2n hdtckVAAHwAG3SXD5jzmqkRPBv2dy2hR8WvdgvKbuVIaYOGg7a/xwOXi1LFnB9xcvEki ptELGIel4C1Go3myIZzjOX5GVpcfprtiO6JEdRQjmaGUPsxeX72FzJIMUWfl9ZIC7duh ShVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@zytor.com header.s=2022030301 header.b=FjhPFIrk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u15-20020a170902a60f00b00153b2d1663fsi10527099plq.583.2022.03.21.15.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:30:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@zytor.com header.s=2022030301 header.b=FjhPFIrk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 854BF3AA9B0; Mon, 21 Mar 2022 14:43:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241394AbiCRWtv (ORCPT + 99 others); Fri, 18 Mar 2022 18:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241379AbiCRWtt (ORCPT ); Fri, 18 Mar 2022 18:49:49 -0400 X-Greylist: delayed 828 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 18 Mar 2022 15:48:30 PDT Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F917268C38; Fri, 18 Mar 2022 15:48:30 -0700 (PDT) Received: from [IPv6:::1] ([IPv6:2601:646:8600:40c1:8f0c:2533:51ff:d719]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.15.2) with ESMTPSA id 22IMltGC1012727 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 18 Mar 2022 15:47:56 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 22IMltGC1012727 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2022030301; t=1647643676; bh=eQmUnf4BQ6Am5omHpUeOWcJu4ubjTaOa1UmiRCl9H4A=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=FjhPFIrk+8dUdZPRs95FCMKlxROzpjTBqlqt1yqa4v1OWFiKnD4uXULa4YjMf/1Yd jIcsOz4fu2fiJJzZuEyv5DAiWz+fnYMetgYZRq9ZJBSJzYLJvsJZMLvq++A3TcYmTL a4QWVdrWQFloz4VuA1nDVPOS2H8iN5Y3RBgI8NxOJ7kjK2uFKvpm2WQPWYWETmVBt2 A33qv13r63/moq+OBS04JKvyzYsEifUhTMnxbCBeHz2uqpBeW2bZdd2GdUvdSDWv0R PjEQvAANiuXAZhr7Rjy9FGqM9EM1cLqeJ3I98K6cvo/7NFARUVLXlGpBDk97GJLP0S YvF6UXcUsoc5w== Date: Fri, 18 Mar 2022 15:47:49 -0700 From: "H. Peter Anvin" To: David Laight , "'Segher Boessenkool'" , Linus Torvalds CC: Andy Lutomirski , Andrew Cooper , Nick Desaulniers , Bill Wendling , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Nathan Chancellor , Juergen Gross , Peter Zijlstra , "llvm@lists.linux.dev" , LKML , linux-toolchains Subject: RE: [PATCH v5] x86: use builtins to read eflags User-Agent: K-9 Mail for Android In-Reply-To: References: <83b33afc-8502-0065-60bc-3a91528632d8@kernel.org> <20220318220901.GS614@gate.crashing.org> Message-ID: <93EDA96C-0EAD-4C40-ABEA-28C8BF76A9F9@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On March 18, 2022 3:36:48 PM PDT, David Laight wrote: >From: Segher Boessenkool >> Sent: 18 March 2022 22:09 >=2E=2E=2E >> It generally is a very good idea to >> have a redzone though, without it you pay much more than necessary for >> frame setup and teardown in leaf functions (similar to some of what the >> misnamed "shrink-wrapping" optimisation does, but the two are mostly >> independent, the benefits add up)=2E > >Are there really leaf functions that need to spill data to stack >where the cost of setting up a stack frame is significant? > >I'd have thought that was relatively rare=2E > > David > >- >Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1= 1PT, UK >Registration No: 1397386 (Wales) > > Yes=2E