From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB86BC433F5 for ; Tue, 19 Oct 2021 03:51:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C015860EB9 for ; Tue, 19 Oct 2021 03:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232025AbhJSDxM (ORCPT ); Mon, 18 Oct 2021 23:53:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:35866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbhJSDxI (ORCPT ); Mon, 18 Oct 2021 23:53:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B115960EB9; Tue, 19 Oct 2021 03:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634615455; bh=Ew2qGYiAMBHLUYHFn/Jbz8O+vuSpe6FXz9yJJ3UH6d8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=qAUs3+JMqWpNwaHjMuK35ClpgHXmz8KLtGfQihek4oKqXuubpEBybknU5lxVlOxmd kT9KUVFYFxwr3/6d8eajByUrOg/Ks+mSRNe3p4Ky2JMb6B7xEgIxTElCBnkCrB71Tq VyXkBxciUTwaA/6Q2ZE/bk6YjSsEZsaB1R5zwIWIJxPbDmAOk24TEehvW97CbFgSkc yqUCmBjHx72Bkf8Ye0I1KmTzsttWCFF9dC8PwwwR2wEWaJUIRRdl6HtfV8ebPI34Ro FJ7IlCT4A5CdH86A6Ulotw8WTFqBy7LgvxFlzWwIt+hsYni8KI8Hd5QkrlEAaE9Yd0 IWe9QOjqCWiCw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 725975C0DF2; Mon, 18 Oct 2021 20:50:55 -0700 (PDT) Date: Mon, 18 Oct 2021 20:50:55 -0700 From: "Paul E. McKenney" To: Boqun Feng Cc: stern@rowland.harvard.edu, parri.andrea@gmail.com, will@kernel.org, peterz@infradead.org, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, akiyks@gmail.com, dlustig@nvidia.com, joel@joelfernandes.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: Another possible use for LKMM, or a subset (strengthening) thereof Message-ID: <20211019035055.GC880162@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20211007205621.GA584182@paulmck-ThinkPad-P17-Gen-1> <20211018225313.GA855976@paulmck-ThinkPad-P17-Gen-1> <20211019000729.GY880162@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 10:28:04AM +0800, Boqun Feng wrote: > On Mon, Oct 18, 2021 at 05:07:29PM -0700, Paul E. McKenney wrote: > > On Tue, Oct 19, 2021 at 07:56:35AM +0800, Boqun Feng wrote: > > > Hi Paul, > > > > > > On Mon, Oct 18, 2021 at 03:53:13PM -0700, Paul E. McKenney wrote: > > > > On Thu, Oct 07, 2021 at 01:56:21PM -0700, Paul E. McKenney wrote: > > > > > Hello! > > > > > > > > > > On the perhaps unlikely chance that this is new news of interest... > > > > > > > > > > I have finally prototyped the full "So You Want to Rust the Linux > > > > > Kernel?" series (as in marked "under construction"). > > > > > > > > > > https://paulmck.livejournal.com/62436.html > > > > > > > > And this blog series is now proclaimed to be feature complete. > > > > > > > > Recommendations (both short- and long-term) may be found in the last post, > > > > "TL;DR: Memory-Model Recommendations for Rusting the Linux Kernel", > > > > at https://paulmck.livejournal.com/65341.html. > > > > > > Thanks for putting this together! For the short-term recommendations, I > > > think one practical goal would be having the equivalent (or stronger) > > > litmus tests in Rust for the ones in tools/memory-model/litmus-tests. > > > The translation of litmus tests may be trivial, but it at least ensure > > > us that Rust can support the existing patterns widely used in Linux > > > kernel. Of course, the Rust litmus tests don't have to be able to run > > > with herd, we just need some code snippest to check our understanding of > > > Rust memory model. ;-) > > > > It would be very helpful for klitmus to be able to check Rust-code memory > > ordering, now that you mention it! This would be useful (for example) > > to test the Rust wrappers on weakly ordered systems, such as ARM's. > > > > Right. > > > > Besides, it's interesting to how things react with each if one function > > > in the litmus test is in Rust and the other is in C ;-) Maybe this is a > > > long-term goal. > > > > > > Thoughts? > > > > These issues are quite important. How do you feel that they should be > > tracked? > > > > Yep, it's already in my list. I created a small repo to track all issues > I know about LKMM for Rust: > > https://github.com/fbq/lkmm-for-rust > > It's still under construction, but I put the litmus test thing in that > list. Very good, thank you! Thanx, Paul