Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nMIQZ-0005Za-Q3 for mharc-grub-devel@gnu.org; Mon, 21 Feb 2022 18:49:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMIQY-0005Vb-FN; Mon, 21 Feb 2022 18:49:10 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:46130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMIQW-0002XL-6F; Mon, 21 Feb 2022 18:49:10 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 32F984FD; Tue, 22 Feb 2022 00:49:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZaorMfn1ZPqP; Tue, 22 Feb 2022 00:49:04 +0100 (CET) Received: from begin.home (unknown [IPv6:2a01:cb19:956:1b00:de41:a9ff:fe47:ec49]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 204C7203; Tue, 22 Feb 2022 00:49:04 +0100 (CET) Received: from samy by begin.home with local (Exim 4.95) (envelope-from ) id 1nMIQR-00GQaP-Pp; Tue, 22 Feb 2022 00:49:03 +0100 Date: Tue, 22 Feb 2022 00:49:03 +0100 From: Samuel Thibault To: grub-devel@gnu.org, bug-hurd@gnu.org Subject: Re: [PATCH] hurd: Add support for pci-arbiter and rumpdisk Message-ID: <20220221234903.danxqm7hr5xemtpk@begin> Mail-Followup-To: grub-devel@gnu.org, bug-hurd@gnu.org References: <20220220192303.irc52kqryt76txjf@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220220192303.irc52kqryt76txjf@begin> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 32F984FD X-Spamd-Result: default: False [0.40 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; MID_RHS_NOT_FQDN(0.50)[] Received-SPF: neutral client-ip=185.233.100.1; envelope-from=samuel.thibault@ens-lyon.org; helo=hera.aquilenet.fr X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2022 23:49:10 -0000 Samuel Thibault, le dim. 20 févr. 2022 20:23:03 +0100, a ecrit: > This adds pci-arbiter and rumpdisk as bootstrap modules whenever they are > available. This opens the path for fully-userland disk support. I forgot: Signed-off-by: Samuel Thibault > diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in > index 3663d360e..2ab3a97e6 100644 > --- a/util/grub.d/10_hurd.in > +++ b/util/grub.d/10_hurd.in > @@ -68,6 +68,18 @@ for i in /hurd/${hurd_fs}.static /hurd/exec ; do > fi > done > > +if test -e '/hurd/pci-arbiter.static' ; then > + pci_arbiter=true > +else > + pci_arbiter=false > +fi > + > +if test -e '/hurd/rumpdisk.static' ; then > + rumpdisk=true > +else > + rumpdisk=false > +fi > + > if ${at_least_one} ; then : ; else > # no hurd here, aborting silently > exit 0 > @@ -132,14 +144,46 @@ EOF > opts="--readonly" > fi > > + host_ports="--host-priv-port='\${host-port}' --device-master-port='\${device-port}'" > + resume_task="'\$(task-resume)'" > + > sed "s/^/$submenu_indentation/" << EOF > echo '$(echo "$message" | grub_quote)' > +EOF > + > + if [ "$pci_arbiter" = true ] ; then > + if [ "$rumpdisk" = true ] ; then > + next_task='${disk-task}' > + else > + next_task='${fs-task}' > + fi > + sed "s/^/$submenu_indentation/" << EOF > + module /hurd/pci-arbiter.static pci-arbiter \\ > + $host_ports \\ > + --next-task='$next_task' \\ > + '\$(pci-task=task-create)' $resume_task > +EOF > + host_ports="" > + resume_task="" > + fi > + > + if [ "$rumpdisk" = true ] ; then > + sed "s/^/$submenu_indentation/" << EOF > + module /hurd/rumpdisk.static rumpdisk \\ > + $host_ports \\ > + --next-task='\${fs-task}' \\ > + '\$(disk-task=task-create)' $resume_task > +EOF > + host_ports="" > + resume_task="" > + fi > + > + sed "s/^/$submenu_indentation/" << EOF > module /hurd/${hurd_fs}.static ${hurd_fs} $opts \\ > --multiboot-command-line='\${kernel-command-line}' \\ > - --host-priv-port='\${host-port}' \\ > - --device-master-port='\${device-port}' \\ > + $host_ports \\ > --exec-server-task='\${exec-task}' -T typed '\${root}' \\ > - '\$(task-create)' '\$(task-resume)' > + '\$(fs-task=task-create)' $resume_task > module /lib/ld.so.1 exec /hurd/exec '\$(exec-task=task-create)' > } > EOF -- Samuel je viens d'inventer mutt version magritte :D ? dans mutt tape "cceci" return