From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2KN6NjV97mTZCgAAauVa8A:P1 (envelope-from ) for ; Wed, 30 Aug 2023 01:20:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2KN6NjV97mTZCgAAauVa8A (envelope-from ) for ; Wed, 30 Aug 2023 01:20:21 +0200 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 aspmx1.migadu.com (Postfix) with ESMTPS id 619793F3CD for ; Wed, 30 Aug 2023 01:20:21 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=Tq+YUSkb; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693351221; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=YhmqyHc0Z/VjSThjM+Vg3ml2XDw+X2o/4jJ5gFeGImA=; b=IKSaDNExAwc2t9vjtNRYH/pstlIU0uYuyJ4AuZCKGACXweIkgXEqbGOF6LjyjwGB9Sn1VY qlzECk+39ghouXj0ARuQQHwWwqWdcjIzGYC3mefU1uX/u9VfvEFWRf4gDvCGop8sFaTYZw 5jW0GUwJUZawB6e6b06/R068xfw1phYQex+0B0b/KfIhHzwCC7pN2x7QNHy3D6po+S+v6p hOZn54DFriCcK7EdWOveIJuxb49+W4UjZ6yoJmYAkTNXwLjevtVypTmXE/l/lqevLjRXRD qas/tY9j9IXJkUSyOShs6E35WSMfgspfDG3TQEvjh3IoNe/P0xFV+b4eqVpDmg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693351221; a=rsa-sha256; cv=none; b=MXJidcgcz/PJYdoOMCiu7T5+JEImDEuJ9JhU01SJ+Jrv0YSK+RL4RNOkGby6lxjLBSOCTk XjU3k0L0+7RZQeihfRPMX7PFtSUJLhpqCRoUtVsCRmamRtsvJTYPsyboPjbKuYo/EfYvyG kwxELNY0slI7V3cooVZQFMH9PUelWWuMbhd39bJx4HdOmgLsIrrWAnr6u6c8WC7HHQg2Ne aq2Ye1Sa8J7o8Jro34g76iHTbPq5xb+v/AYvtZxlxZrZKFLQMgtJduVWmzU/OPO+Xy5tx1 YQHsqQfUMaV+E7kYIKFu9h9XI/1khzW8l3XMvfoF8fdNB/EdT7o2ScjyXz5t/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=Tq+YUSkb; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qb7p2-0003gq-0t; Tue, 29 Aug 2023 19:08:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qb7oS-0002qq-Iz for guix-patches@gnu.org; Tue, 29 Aug 2023 19:07:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qb7oR-0006pV-5p for guix-patches@gnu.org; Tue, 29 Aug 2023 19:07:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qb7oY-0002wC-7t for guix-patches@gnu.org; Tue, 29 Aug 2023 19:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64907] [PATCH 0/2] gnu: Add rvvm support packages. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Aug 2023 23:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64907 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Juliana Sims , 64907@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 64907-submit@debbugs.gnu.org id=B64907.169335047011273 (code B ref 64907); Tue, 29 Aug 2023 23:08:02 +0000 Received: (at 64907) by debbugs.gnu.org; 29 Aug 2023 23:07:50 +0000 Received: from localhost ([127.0.0.1]:51794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qb7oL-0002vl-Gv for submit@debbugs.gnu.org; Tue, 29 Aug 2023 19:07:49 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:44004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qb7oI-0002vV-RH for 64907@debbugs.gnu.org; Tue, 29 Aug 2023 19:07:47 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id A55CE1ADEE; Tue, 29 Aug 2023 16:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1693350450; bh=CwgeXU43qeZs8vbCYx7wAFFBxbgVPpB5Jz4CyK/Idgg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Tq+YUSkbniH0dAHizHDXhlLH6HCmnwXuMPlA+u4m6EaSmg10sLnzLfkTg3n0fa6a0 e+hiP9SBa62wGHmVqDBJZBNA83SwQpkv31VcDks6opoDCzh1q6AyH9DNde+4lSjJqX B453WcSgfpKsrzj2k1dDKQ1MlMuC9suzD6sEd25BKx6Q8vUIlN93hIe1+lzGvEbn31 KdEfuGp2Sgh5kjs8y+m16jGt0vqsOXKP8EiMhcfJnu+iIQIbZItYaotKhkZs7PSSZZ NETTeWINVFc3Vd8xZsFpxk4KVuoEVfT/5x6qHeG3JJbDs6555d+gfclEmfot9FKRZb m5/BcmeJYtclg== From: Vagrant Cascadian In-Reply-To: References: Date: Tue, 29 Aug 2023 16:07:27 -0700 Message-ID: <87fs41v45s.fsf@wireframe> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.55 X-Spam-Score: -3.55 X-Migadu-Queue-Id: 619793F3CD X-Migadu-Scanner: mx2.migadu.com X-TUID: Nrh29YZOGAr1 --=-=-= Content-Type: text/plain On 2023-07-27, Juliana Sims wrote: > These patches create specialized U-Boot and OpenSBI packages to use with RVVM by > applying RVVM's author's patches to those projects. Additionally, they build > this patched version of U-Boot into OpenSBI's `fw_payload.bin`, mimicking the > binary release from RVVM. It could be a lot of work over time to maintain a patched version of u-boot and/or opensbi, especially if those patches are not going to be merged upstream at some point... > The RVVM author claims faster execution than QEMU. How much faster? Knowing nothing about RVVM, When I asked on irc.libera.chat #riscv that was basically the question I got... So if going that route, would want to make sure the performance difference is significant. > As such, the ultimate goal of > these packages is to create a system service which will allow developers to > easily run Guix under RVVM for the purpose of development, much like > hurd-vm-service-type provides a way to run Hurd under Guix. However, that's a > larger project, and getting these packaged as they are will already prove > useful. Anyone wishing to use them can simply run: > > ``` > guix shell --pure rvvm opensbi-rvvm > rvvm /gnu/store/-opensbi-rvvm-/fw_payload.bin -i .img [...] > ``` > > I have tested these packages with the FreeBSD-13.2 RV64 raw disk image, so I > know they run successfully. > > It's worth noting that opensbi-generic works fine with RVVM. However, it does > not provide `fw_payload.bin` - only `fw_jump.bin` - so this version provides > more flexibility. That said, opensbi-rvvm is 5.3 MB compared to > opensbi-generic's 1.3 MB. Because of that, I'm ambivalent about adding it. I > leave the decision on whether or not to include it entirely up to others; > there's no sense in throwing away work I already did if it may be useful. If it requires patches, I am a bit concerned about long-term maintenence... If it does not require patches, that does not seem like a huge increase, or an alternate build that also ships the fw_payload.bin file. > It may be worth noting that RVVM also has patches for the Linux kernel. However, > upon inspection they seem to primarily be concerned with decreasing binary size, > which can be worked around if needed. The linux-libre-riscv64-generic package > should work just fine, but this has not been tested. Worked around how? live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZO56LwAKCRDcUY/If5cW qvzpAQDRSn/Lk1aMBHN5yLY5dLVnRrZoRX85mBipWN13vyYjfwD/aSgtTaXairWU sljd9eysIQpTfXm5qptAtLvHIr4x2w4= =YktN -----END PGP SIGNATURE----- --=-=-=--