Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5909464pxv; Wed, 7 Jul 2021 14:50:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2dkXYUbCVHh4VMOHm4EnWK8Gx3GZetOXxJEsSjCmN1eh2Ta1S7Q9QknEMpc1e4/yaJyfl X-Received: by 2002:a50:ed90:: with SMTP id h16mr32750357edr.348.1625694626863; Wed, 07 Jul 2021 14:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625694626; cv=none; d=google.com; s=arc-20160816; b=V2EPmjKBKFZY0S2Y20jlUThZNaIXQGCA1ufQ+/Nc+5GuubGUhxcM40RxDfd+RmMLAw 1qunZUxFbIv0yoRd3mLMaFQA4HjBO2qtu18pEvhE4xXJJIjGG50ZyxAO1NAlR65gjTGP jhozU5mO9teDkzF87PFQq7gvMejPqBBj49XwudSrnPWKTRR+4Dnn2MEOie3KaPzYYKn4 +64ddSykPdZvlt5pxjdKN9RFCzYHjNlAgtyDzy5hZqlQOre+g/dqx1sqINLAHoIKBKF5 r7IRKApIzZyutaKVVh/vSkxVti80x0nH2dhTMoQBukKMD/mXVst+T/7hzJaP8EHU3FYN fgug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=ue6yFIrJ8oXo+OFNenX1k1ytbRJ/dJD8ReqwCtXpUOA=; b=BvfF3O/zV6RCNJUC54Z4HWmbZe1Nk2dosug0FkUHhDM97CJSXOnsRZhNMgGFLTM+eH y3a1KDiY9dk28JkjV2H26t+cm2uKkbM8oLM487CV9t5iNMlbsbMzyE2bxs28NxICiQ9H TZmbythLtbicxB21ScrKn5IxZJ5w10uZdkBmDkG6R4bjzcXgT05yFs1rymrinvckbYBk zg51TLj3tt9n2+xptMEfa62+sJoA/iv10b27G5dwzw6hyVn3XaEVG534dT+lAYSEo970 pCjQOm7OLkoWaCyYQvEKgPBC2L8FO7ddbjGLZRK8agPHq0YPOZNOu9AZn4fUiABMiHF6 BHfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kloenk.dev header.s=mail header.b="IPvT50/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kloenk.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si333247edv.132.2021.07.07.14.50.03; Wed, 07 Jul 2021 14:50:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kloenk.dev header.s=mail header.b="IPvT50/X"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kloenk.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232134AbhGGVGd (ORCPT + 99 others); Wed, 7 Jul 2021 17:06:33 -0400 Received: from gimli.kloenk.dev ([195.39.247.182]:49490 "EHLO gimli.kloenk.dev" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbhGGVGd (ORCPT ); Wed, 7 Jul 2021 17:06:33 -0400 X-Greylist: delayed 411 seconds by postgrey-1.27 at vger.kernel.org; Wed, 07 Jul 2021 17:06:32 EDT Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kloenk.dev; s=mail; t=1625691419; bh=XvBNqB53b+UDSkntbWZIwDkF0py1FkstKOl/6BKenl4=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=IPvT50/Xp4G2h8l04mSx++YIcxglQIDHHizSnRO2ZnxX0PKbtV3D9ePnIgIMWwqMY M0D3v37ZhwzV/AqFmqfFk8iDnzVER6Ev6oNjjR5YRraEAQlkl5ffjXyhGKpp2U655J BR2ceK9WZPjRY5KFKG68TKJcpSOEo+7qWOR9wkD0= Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [PATCH 00/17] Rust support From: Finn Behrens In-Reply-To: Date: Wed, 7 Jul 2021 22:56:57 +0200 Cc: Wedson Almeida Filho , Miguel Ojeda , Christoph Hellwig , Miguel Ojeda , Linus Torvalds , rust-for-linux , Linux Kbuild mailing list , Linux Doc Mailing List , linux-kernel Content-Transfer-Encoding: quoted-printable Message-Id: References: <20210704202756.29107-1-ojeda@kernel.org> To: Greg Kroah-Hartman Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 7. Jul 2021, at 17:02, Greg Kroah-Hartman = wrote: >=20 > On Wed, Jul 07, 2021 at 03:07:50PM +0100, Wedson Almeida Filho wrote: >>> Last I looked at this thing, it was not >>> feature-complete compared to the in-kernel binder code, has that = been >>> resolved and the needed filesystem changes added? >>=20 >> It is not feature-complete in comparison to the C one just yet, it is = missing a >> few things but not for any fundamental reason -- we were mostly = focusing on the >> kernel crate and tests. >=20 > I love it how you call "binderfs is missing" a "few things" :) >=20 >> Miguel's point is that it does implement the vast majority of binder = features >> and is non-trivial, so it could be used as evidence that useful = kernel drivers >> can be built with Rust; not just "transpiled" from C, but written = with the Rust >> safety guarantees. >=20 > As Christoph said, and I and others have said before, binder is in no > way shape or form anything that resembles any sort of "driver" at all. > It is a crazy IPC mechanism that is tacked onto the side of the = kernel. > Not to say that it doesn't have its usages, but the interactions = between > binder and the rest of the kernel are very small and specific. > Something that almost no one else will ever write again. >=20 > Please work on a real driver to help prove, or disprove, that this all > is going to be able to work properly. There are huge unanswered > questions that need to be resolved that you will run into when you do > such a thing. >=20 There is a more general use driver (network dummy) still in the making, = It is fully operational, just the documentation of the rust bindings are = not finished yet, so it is not merged into the rust tree yet, also I = have to rebase it. I testet the network dummy (dummyrs) driver and for stupid tests like = Iperf3 or ping it performed slightly better that the C version. See = https://github.com/Kloenk/linux/blob/rust-netdevice/drivers/net/dummy_rs.r= s for the actually driver. Yes this driver is still only virtually, but the network apis are = probably more general usage than the binder apis. > Good luck! >=20 > greg k-h CU, Finn