From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iJ29MO8evmR0qgAASxT56A (envelope-from ) for ; Mon, 24 Jul 2023 08:49:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KNXmL+8evmQXZwAAG6o9tA (envelope-from ) for ; Mon, 24 Jul 2023 08:49:19 +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 31C3A661E9 for ; Mon, 24 Jul 2023 08:49:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=incana.org header.s=gm1 header.b=cBCBRVeQ; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690181359; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=eXzuE4jMrC6qE9xaqsXcKezyXB4F0gT1EKJpPi+IVMg=; b=nzQqOp4Lp6fQXOsE88sPW9qVbU/gV4ilPMbRdSXxTzeIC8hxM9dJqwBTkv73Hu9yozY3Wd Ai4V9NetcaxE+XRdy7OrDOFkSDMKAhtTSWzv76BIm1BPG4gtNIWmtSfKGjMmk4pHEPlJAN uxmemUuZeXIF1IXIW3FBhLA2j2j1+LVES9H9PfF8G/oRjbhK8hYYA1GQ6g/b0+tegf9gt9 rVs6bdGLRzAgiGU4yuQBWwj9jj3t3sZaSsisqhds9A/BoxgXGpqfKTkBWOKHnuMN8Lw/HE 2GiXRvKCsvYrQP6OfndkhbKO4YFuSlgxuJZ6iRbie51D+m5WRyT5nZVXpMLD5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=incana.org header.s=gm1 header.b=cBCBRVeQ; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690181359; a=rsa-sha256; cv=none; b=NCqvHEaP838qoFI21ir7huGjVIPBXBPEcyuDv7C5vU0ND9U+otL5XZ3MGwCrO0VIyiys8i M+8EOAZn2ntfyIWfBrGRSmElK3uJVbH5Y+EREEPDQ/gizhnCYzi9TvNgZ2JcJOPLXQx09Z ihXonAsyr+xNY5EwirBcqndLfWDS1FYNryV02rfDuvaHlsKf5CpS/VEMuTWoxFD/az1VjQ b2mcwUQ9xLqn1qI/YvG326JUuj6lbPX9rRT83+0le0ZAoprpCp8dgZGtpxpug2FAmgda6H b2yeczb9C/jbZQvl4EKidFHGC9EVXzUwrzGHkopcct40xcQMndD3nyywQ+PAQQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNpNR-0000rD-JK; Mon, 24 Jul 2023 02:49:05 -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 1qNpNO-0000qo-AP for guix-patches@gnu.org; Mon, 24 Jul 2023 02:49:02 -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 1qNpNO-00079e-0r for guix-patches@gnu.org; Mon, 24 Jul 2023 02:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNpNN-0005wQ-SQ for guix-patches@gnu.org; Mon, 24 Jul 2023 02:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64820] [PATCH] gnu: rvvm: Add rvvm. Resent-From: Juliana Sims Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 Jul 2023 06:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64820 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64820@debbugs.gnu.org Cc: Juliana Sims X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169018128322606 (code B ref -1); Mon, 24 Jul 2023 06:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jul 2023 06:48:03 +0000 Received: from localhost ([127.0.0.1]:41570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNpMQ-0005sL-2J for submit@debbugs.gnu.org; Mon, 24 Jul 2023 02:48:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNpMM-0005rH-JN for submit@debbugs.gnu.org; Mon, 24 Jul 2023 02:48:00 -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 1qNpMG-0000lA-8x for guix-patches@gnu.org; Mon, 24 Jul 2023 02:47:53 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNpMC-00071t-Nm for guix-patches@gnu.org; Mon, 24 Jul 2023 02:47:51 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 1CBEFE0006; Mon, 24 Jul 2023 06:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=incana.org; s=gm1; t=1690181260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eXzuE4jMrC6qE9xaqsXcKezyXB4F0gT1EKJpPi+IVMg=; b=cBCBRVeQnARM43tmj+qkKRhQw/5RxNKBA/q9nz0wLYcjjRKErc08VTp2dJt26oWs3IpUeg hXJlrdahoQa4Sn4K+lDpRlgGY5iRjesgHhcaIG9T4w3fPo4ceZkb1J3ERR6KPpCuK/1xre WucLZW/KOmSau9YqkfciCV8Gy5Jdd/BVuBu0N+BmnhAcaUmCDCMmlUdgrSX2aCi7PLzbNz T8AZIzhi9/PRn8U+C5+rjlrwzOm27JxQHYOdhNz2IBlkZmgT7DvKAriyCS6rymL0f7zU+4 nCweCK/cJRe9CQN6pFzJguuv++hm7rXJjSRafj0h7vtKA3nWpMQU972E74dqqA== From: Juliana Sims Date: Mon, 24 Jul 2023 02:47:06 -0400 Message-ID: <5d52e9ee0beb37dba6726441d5180e371448c1b7.1690181226.git.juli@incana.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: juli@incana.org Received-SPF: pass client-ip=217.70.183.196; envelope-from=juli@incana.org; helo=relay4-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Spam-Score: 0.75 X-Migadu-Queue-Id: 31C3A661E9 X-Migadu-Spam-Score: 0.75 X-Migadu-Scanner: mx0.migadu.com X-TUID: fSGPC6YNgzdc Hello, This patch adds the RISC-V Virtual Machine which seems like a handy little tool and claims to be faster than qemu. Neat! Thanks, Juliana * gnu/packages/virtualization.scm (rvvm): New symbol. --- gnu/packages/virtualization.scm | 53 ++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 10 deletions(-) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 3f6c32f390..705d1ac183 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -1127,6 +1127,39 @@ (define-public ganeti-instance-debootstrap Debian or a derivative using @command{debootstrap}.") (license license:gpl2+))) +(define-public rvvm + (package + (name "rvvm") + (version "0.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LekKit/RVVM") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ldabcrmpa044bahpqa6ymwbhhwy69slh77f0m3421sq6j50l06p")))) + (build-system cmake-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (replace 'install + (lambda _ + (let ((bindir (string-append #$output "/bin/"))) + (mkdir-p bindir) + (copy-file "rvvm" + (string-append bindir "rvvm")))))) + #:tests? #f)) ;no tests + (home-page "https://github.com/LekKit/RVVM") + (synopsis "RISC-V virtual machine") + (description + "RVVM is a RISC-V CPU and system software implementation written in C. It +supports the entire RV64GC ISA, and it passes compliance tests for both RV64 and +RV32. OpenSBI, U-Boot, and custom firmwares boot and execute properly. It is +capable of running Linux, FreeBSD, OpenBSD, Haiku, and other OSes. Furthermore, +it emulates a variety of hardware and peripherals.") + (license (list license:gpl3+ license:mpl2.0)))) + (define-public spike (package (name "spike") @@ -1134,22 +1167,22 @@ (define-public spike (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/riscv-software-src/riscv-isa-sim") - (commit (string-append "v" version)))) + (url "https://github.com/riscv-software-src/riscv-isa-sim") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0cik2m0byfp9ppq0hpg3xyrlp5ag1i4dww7a7872mlm36xxqagg0")))) (build-system gnu-build-system) (arguments (list - #:phases - #~(modify-phases %standard-phases - (add-before 'configure 'configure-dtc-path - (lambda* (#:key inputs #:allow-other-keys) - ;; Reference dtc by its absolute store path. - (substitute* "riscv/dts.cc" - (("DTC") - (string-append "\"" (search-input-file inputs "/bin/dtc") "\"")))))))) + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'configure-dtc-path + (lambda* (#:key inputs #:allow-other-keys) + ;; Reference dtc by its absolute store path. + (substitute* "riscv/dts.cc" + (("DTC") + (string-append "\"" (search-input-file inputs "/bin/dtc") "\"")))))))) (inputs (list bash-minimal dtc)) (native-inputs base-commit: a0c387cb7942742851397687c584b1cacefe5122 -- 2.41.0