Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2496175rwb; Thu, 29 Sep 2022 10:55:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5AJp12K2JXI1RcUDO9taEGTg19pHpeAHO2pSb3lOFltuKTvbsql77W7WqyV3qzUGe3nZdR X-Received: by 2002:a17:902:c245:b0:178:3912:f1fe with SMTP id 5-20020a170902c24500b001783912f1femr4633528plg.13.1664474125936; Thu, 29 Sep 2022 10:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664474125; cv=none; d=google.com; s=arc-20160816; b=svh5u8rftNC6x55AWUGxaRZaG3qH2LXhuvynZeU0U25dtgD4LltzRhH18j68ckU/67 8/qiWbm8XdtMMsnggqMq8KLMUAM9sUKRKf5D4sq6jyL9aUvIsuncLBU//IxD8DgWG6p8 6RmIbGDtOAHPHlwSkkEMB7mOBZykytA+O843mbCDWyMG407hpF0boPR1NnNgrlwRYGfm kOF5Roi9Z9cz3V/9RViWQoI0zBzE21PlCaY9K6KmA8Zx3LDVOA7bVCrY6tJU/3sfu8E+ jLA7DGn3jOmvbuweJ2IzUtT95KSCEatEzARcLfzPG7nrD3O1CgzE6diafFJDwy8gZIFu z3yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hp5MQIBdOQ5Xk6FQmwC1/qIjFwJwbOcf9xoZvfBFSSs=; b=GwWk8/kOq6cVzgz0nayvGI0ixSXxcjMmcu92vJ3GXTocxF2SZNOxz1QzExHHdm/qbZ ZfE9yzxY01fJhgJ//L0h2iSQMX5QjOD7AcFuUu/MlFhjnSI1A5x3Y097fVff/hvW0rzy 5U8KhHV7cf0t5pYfF/hONZj1S89mFLV9cTn7v2suYWxOJOyNUY/NANWSWKKj/3gyloAu zfNWIZqbFG06U+sG4012VL03JZ7VdrptENm74qfpuKNhuNkl9dPKLalTiSVSsQl9kP6x whaB3zcHHp5qShxaDalciF1ArpXb80elcAdQNSE7BGoZLlv6539N4CFuQapHVgoaHEqQ Gxig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RyAGnpmV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k16-20020a63d110000000b0043c1ef84800si319081pgg.582.2022.09.29.10.55.14; Thu, 29 Sep 2022 10:55:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RyAGnpmV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235234AbiI2R0p (ORCPT + 99 others); Thu, 29 Sep 2022 13:26:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234100AbiI2R0n (ORCPT ); Thu, 29 Sep 2022 13:26:43 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F4E7140F12 for ; Thu, 29 Sep 2022 10:26:42 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id v1so1820862plo.9 for ; Thu, 29 Sep 2022 10:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=hp5MQIBdOQ5Xk6FQmwC1/qIjFwJwbOcf9xoZvfBFSSs=; b=RyAGnpmVQ7MHTy3FCbwhx+2SCA1IVKkyCDgY5S0n/JQkX7ciyU6WlRztNvL4tNYrWY P8yeb9atgz7sJsNunvKwjSto1jvT288QBV6GYqC7mDy3SZwOfgTA5t2FFXRx+RY8vD1K prK2Vz3hNVAMyJWXzGokK3qlkKIop5mkwV5XeVXDK9D8JowjYfW2wPcbAXwbOtCYcci0 wpJJ4cwbTD8ShNL1hy5MkbWLlI5g2YJ3Hze+RsckkZqZfGsUhNdyzO3PbImn4y+OfjdG qSqThRukWMKgvEj4MkvYX/UUXLkN4msLyzS2iZukUZ1wsy+oAQDEztxkF5S0D94S0938 CskQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=hp5MQIBdOQ5Xk6FQmwC1/qIjFwJwbOcf9xoZvfBFSSs=; b=tkyuby+Mn55xRVMRaM+L7+Q8ap4jDpjDU5VDpA0XaAP8XKpEUSKzMmloNSFStcsy6Y NrBiEU2YyTymeGVe/8fu1DexFmlD5pr2Vz5g6765A5GqAXWGh0Hna2tKLJc0gHFwqtIJ Ix8VxSqWtCad8oJwC3NagmCMJO2untkZZ+UzFH5d0oDChMZqvHC+fCBLY3Ofgv0JEFnH ayuKIlIfPiMhTsbihys6yUKgCsf5VHbqwUYZxoZoKqrJGJ+fMI9jfdeKw+YWS2nDQQE0 479IYHwUDQqbbud1ZBCSp6SZWRvKH8Y2ln18Qyr9CEY5aeyWmkIzMa8zeBIxIbRvma7V EiGg== X-Gm-Message-State: ACrzQf2hpFQsBWWQ3Th12OIBfOfpdiW0SD+gF5lZmsol/h03PzYxaQt/ fWVTw5KZzVweiJN0pbuqJRIPiwaYbqHBLZm4aqPmGA== X-Received: by 2002:a17:90b:1d0f:b0:202:be3e:a14a with SMTP id on15-20020a17090b1d0f00b00202be3ea14amr17447921pjb.102.1664472401750; Thu, 29 Sep 2022 10:26:41 -0700 (PDT) MIME-Version: 1.0 References: <20220928210512.642594-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Thu, 29 Sep 2022 10:26:29 -0700 Message-ID: Subject: Re: [PATCH v4] x86, mem: move memmove to out of line assembler To: Ingo Molnar Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Peter Zijlstra , Kees Cook , linux-kernel@vger.kernel.org, Linus Torvalds , llvm@lists.linux.dev, Andy Lutomirski , Rasmus Villemoes Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Thu, Sep 29, 2022 at 1:02 AM Ingo Molnar wrote: > > Yeah, so you did various whitespace & indentation cleanups, and I think if > we are touching trivialities we might as well fix/improve the documentation > of this function too... Yes, these are all wonderful suggestions. My hope is to also improve the readability of the implementation. I will incorporate your suggestions into a v5 and credit you with a suggested-by tag. > calling standards details. If we want to mention it to make it clear what > we are saving on the stack and what not, the best description is the one > from calling.h: > > x86 function calling convention, 32-bit: > ---------------------------------------- > arguments | callee-saved | extra caller-saved | return > [callee-clobbered] | | [callee-clobbered] | > ------------------------------------------------------------------------- > eax edx ecx | ebx edi esi ebp [*] | | eax Oh! Perfect! I'm so glad this table exists! > Feel free to carry these changes over into your patch. Will do, thanks. -- Thanks, ~Nick Desaulniers