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 X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EA9FC433EF for ; Sat, 18 Sep 2021 05:35:22 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 66127611C8 for ; Sat, 18 Sep 2021 05:35:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 66127611C8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:51624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRT0R-0003Cc-TN for qemu-devel@archiver.kernel.org; Sat, 18 Sep 2021 01:35:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRSyC-0002Sj-5i for qemu-devel@nongnu.org; Sat, 18 Sep 2021 01:33:00 -0400 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:55203 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRSy7-0005q6-DJ for qemu-devel@nongnu.org; Sat, 18 Sep 2021 01:32:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1631943170; bh=+MTyllj8JNkt5mdIdOpsmOq70bwR12NWZZYBfCL4RuI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nGJu3oq/jvryZweAKG9j5bHFcP3SnTzDz+6ewOr3+haYv5dElHNYaMC6zgn+JD57d njiyiG+fzzvK/OgyIjBJ/5NO0pnY1d/5TROMA7p+f8Krrl3d6fqdF0hs+Z63dWuXUI KDzJGfB1qwyGnUTMCoBELa/V+7t7dOio+h9g9NLk= Received: by ozlabs.org (Postfix, from userid 1007) id 4HBKGV0cc1z9sX3; Sat, 18 Sep 2021 15:32:50 +1000 (AEST) Date: Sat, 18 Sep 2021 15:25:28 +1000 From: David Gibson To: Stefan Hajnoczi Subject: Re: Rust in Qemu BoF followup: Rust vs. qemu platform support Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NgGe6oOgRT5lgLhZ" Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2401:3900:2:1::2; envelope-from=dgibson@ozlabs.org; helo=ozlabs.org X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Sergio Lopez , Cornelia Huck , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , "qemu-devel@nongnu.org Developers" , hreitz@redhat.com, =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , Paolo Bonzini , Alex =?iso-8859-1?Q?Benn=E9e?= , Stefano Garzarella Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --NgGe6oOgRT5lgLhZ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 17, 2021 at 04:56:02PM +0100, Stefan Hajnoczi wrote: > On Fri, Sep 17, 2021 at 01:11:56PM +0200, Philippe Mathieu-Daud=E9 wrote: > > Le ven. 17 sept. 2021 10:58, David Gibson = a > > =E9crit : > >=20 > > > Hi all, > > > > > > At the qemu-in-rust BoF at KVM Forum, I volunteered to look into > > > whether Rust supported all the host/build platforms that qemu does, > > > which is obviously vital if we want to make Rust a non-optional > > > component of the build > > > > >=20 > > Could user mode emulation be impacted by this decision? What code used = by > > user emulation could potentially be converted to Rust? >=20 > qemu-user does not have the same security requirements as qemu-system, > since the application is running under a given uid/gid on the host > system and can invoke system calls. >=20 > I think the benefits of Rust in qemu-user would be more around > expressiveness (language constructs like pattern matching, traits, etc) > and correctness (memory leaks, concurrency, etc). Both benefits might > motivate someone to write parts of qemu-user in Rust, so I guess the > answer is "all of it potentially could be converted". It's impossible to > know until someone contributes patches. Right. It certainly could be used there, but I don't know it's the most promising or interesting area for it. --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --NgGe6oOgRT5lgLhZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAmFFeEYACgkQbDjKyiDZ s5IjJxAAgKv2l9ZQIX5+JP7xeaxyn+OdMgeSb+C9WNLh2DrWarN9vuHO2afFW0vG GQPAs7bbMYeVgL4/pzGERdCXcM7+vLaPy4yYyaPamZ/ohMCM+gyQJjYnG+5ZJY3M L+LBkTyY42INXut0cjffNMLYPxT9m+0JvRntfhUbjGzM02lAC5fqcjS+Uk8lWKOH bzPJhCeBoV/RiTIhjiw8dbpVlbnTBmtOpNYJGIGdQR5rGGPad1r6l0zN+1VvRz9y AF7S5NnIzDol9vDod/aqlapXcOHMWWMZ2brFa1XbdbOrlbpvU6lTXjkktEutfpCU fheaEHuRB0SElweo6FnElv6BIxFunkV1FdeUAFJrg7qzI8GYEfQ8IZ8LLcW1Gttl l/FUOLfVRRWLADuDBNeoG2UyIk56EqCQIqX0Gx89IUH6vGFGbytndDK0tNuOdJ5t nHrS1kZ5J7AtdwpUWin0Xjl3GIyda/PAe6JqXaTxayaSlEGYQBQ6qHUDbxY1BfuW cq9d7KfK4oCpdkBjyJP9rG2pvbFzXxKuu5Z0BniEHj+Lq6nUhRBTM9yCnsEuMs4U EkOybOdXwV31qy08jvif5mTxnbdqfr7DMv18mZytPBqBXJzOwARPGeFvZ+sDQDJp PYFWLm39bB2prhm+YhKls3qxJ1BqHmV5+8qy/GyvG9yzWjKKeCk= =Ft80 -----END PGP SIGNATURE----- --NgGe6oOgRT5lgLhZ--