Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp910213rdb; Fri, 1 Dec 2023 01:41:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMsNzU39j4RUl41pOWAEDk8dPMq4/ZzkVkWun7kmgAnrzNnOoG/lnGPv6HVAyEFokWLBzw X-Received: by 2002:a17:90b:4d8b:b0:283:551b:bd95 with SMTP id oj11-20020a17090b4d8b00b00283551bbd95mr24220956pjb.13.1701423686535; Fri, 01 Dec 2023 01:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701423686; cv=none; d=google.com; s=arc-20160816; b=nuHFIFK1iu158T/GoVHvWTbpwjKIypOzElaIpPQ85r1/x+1zM5d1gqGPlwNeXfi4d8 Kx0dPN6HlNltsK+unaIYAMGPPz9yen+6+yuJajvCr7hdyWXQ3VL3EzcTBJbPyGJk/EqC OiK6CCsFMfeKWYCYAXQz0ghvN+rLsoFjgxpIWo5lX5sxhd0/E2tOi/duW9oubR9rVKYm 7D3092MN7Yzoynmjq6h8z+52NfMfpWADwdKg+JRA1iLN8DAYvC+Vk+naNDGQgJsCC2Wf 6hiPRCN2TCt4EmAw9umkyLcpLVzKgS4qZqeWfCiIY0Cn2VdKUv3lmTmTB7mCsJmsFx3d wh+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XNeUocVmGbm3ocmLAHCGAblGlIvYZUei+z/qerXS7Xo=; fh=/prSlm0yH8eSVsoWN6q6zd6qsK7qKo7bNvp3ZizMj1c=; b=IOuUWfCMa56SU1Rd6c1VfEl3pL4KcD//wSj4j7D+WltxVS4bgVgWDu7QhUnbtuhMLI 0KFJrioEj2EvPvakzpdxLhuedZXFkCQTuRXhTcH6mdi5UoxR6ZJQ/iD0xMvMFO1iGQph Gpbsk9ctoxhFcbuc6xLRORCa3d81jIERau6010A0caBwKpmXflJDanFnMz4zZgUbRWml W98YvxlIAZbjUcvDAiLm+1gx4Dn5VuWNUlRTurIqptGlwtmR3QgswFXbQ/FyoA1frBfi n29/+rqNuBfV8XDmT29txWORX4/Ybko3Carwy62aRI77cMKram0+yqwhs8BWuqHohHLb Ih4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=n0r80qg2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id lw1-20020a17090b180100b0028596b1c1bbsi5595618pjb.90.2023.12.01.01.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 01:41:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=n0r80qg2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 23E18833AB30; Fri, 1 Dec 2023 01:41:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378044AbjLAJkz (ORCPT + 99 others); Fri, 1 Dec 2023 04:40:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377899AbjLAJky (ORCPT ); Fri, 1 Dec 2023 04:40:54 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 965D593; Fri, 1 Dec 2023 01:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=XNeUocVmGbm3ocmLAHCGAblGlIvYZUei+z/qerXS7Xo=; b=n0r80qg2hFc8o/xbFfUcnb8N2O MmQt+VYhfmlp8oN8P0/t42PwjoH6276YAc7dwvM3xMdBIXJdBJ4pB58PDEAzt61nxeEENIqIGWC5X p9hCKS4uCPSMCUVf8b5GVSvCqb9HJVgMBaU75pHajL92qihCbi8CkAQhi4cDqnr/chNHHXCxJwvyx JNEQkEIfk79CFtJaUbHEz1ymPMc4Nd2kB56Jc08HZ400gfGbXeKaVTrBUM/kO1TEM64DHCWW/h+wr 6BPEiNjRtfT8XKSYy3nh8CoEIVk3bZvdDfhRn7RCw3+cUuWbo+oWWfHR6wBwKVszqHMvhHZH5TUFv khsOcfZA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1r900k-00FOrC-H7; Fri, 01 Dec 2023 09:40:39 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id C9879300311; Fri, 1 Dec 2023 10:40:37 +0100 (CET) Date: Fri, 1 Dec 2023 10:40:37 +0100 From: Peter Zijlstra To: Boqun Feng Cc: Matthew Wilcox , Alice Ryhl , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alexander Viro , Christian Brauner , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Dan Williams , Kees Cook , Thomas Gleixner , Daniel Xu , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-fsdevel@vger.kernel.org, Josh Triplett Subject: Re: [PATCH 1/7] rust: file: add Rust abstraction for `struct file` Message-ID: <20231201094037.GI3818@noisy.programming.kicks-ass.net> References: <20231129-alice-file-v1-0-f81afe8c7261@google.com> <20231129-alice-file-v1-1-f81afe8c7261@google.com> <20231129152305.GB23596@noisy.programming.kicks-ass.net> <20231130104226.GB20191@noisy.programming.kicks-ass.net> <20231201085328.GE3818@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 01 Dec 2023 01:41:24 -0800 (PST) On Fri, Dec 01, 2023 at 01:19:14AM -0800, Boqun Feng wrote: > > > https://github.com/Amanieu/rfcs/blob/inline-asm/text/0000-inline-asm.md#asm-goto > > > > Reading that makes all this even worse, apparently rust can't even use > > memops. > > What do you mean by "memops"? Above link has the below in "future possibilities": "Memory operands We could support mem as an alternative to specifying a register class which would leave the operand in memory and instead produce a memory address when inserted into the asm string. This would allow generating more efficient code by taking advantage of addressing modes instead of using an intermediate register to hold the computed address." Just so happens that every x86 atomic block uses memops.. and per-cpu and ...