From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#20239: [PATCH 1/4] services: Add qemu-binfmt. Date: Thu, 11 Jan 2018 14:46:15 +0100 Message-ID: <87wp0o8q54.fsf@gnu.org> References: <87tw6d1j7a.fsf@gnu.org> <20180109161427.28836-1-ludo@gnu.org> <20180109161427.28836-2-ludo@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZdCF-0006mf-1L for bug-guix@gnu.org; Thu, 11 Jan 2018 08:47:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZdCB-0007lr-V2 for bug-guix@gnu.org; Thu, 11 Jan 2018 08:47:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:43867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZdCB-0007li-R5 for bug-guix@gnu.org; Thu, 11 Jan 2018 08:47:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZdCB-0006f1-JU for bug-guix@gnu.org; Thu, 11 Jan 2018 08:47:03 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <20180109161427.28836-2-ludo@gnu.org> ("Ludovic \=\?utf-8\?Q\?Cou\?\= \=\?utf-8\?Q\?rt\=C3\=A8s\=22's\?\= message of "Tue, 9 Jan 2018 17:14:24 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 20239-done@debbugs.gnu.org Hello, Ludovic Court=C3=A8s skribis: > * gnu/services/virtualization.scm (): New record type. > (bv): New macro. > (%i386, %i486, %alpha, %arm, %armeb, %sparc, %sparc32plus) > (%ppc, %ppc64, %ppc64le, %m68k, %mips, %mipsel, %mipsn32el) > (%mips64, %mips64el, %sh4, %sh4eb, %s390x, %aarch64, %hppa) > (%qemu-platforms): New variables. > (lookup-qemu-platforms): New procedure. > (): New record type. > (qemu-platform->binfmt): New procedures. > (%binfmt-mount-point, %binfmt-register-file, %binfmt-file-system) > (qemu-binfmt-service-type): New variables. > (qemu-binfmt-shepherd-services): New procedures. > * doc/guix.texi (Virtualization Services): Add "Transparent Emulation > with QEMU" heading. I fixed a couple of bugs here: - open the =E2=80=9C=E2=80=A6/register=E2=80=9D file once for each platfo= rm instead of once for all; - hex-encode all the characters in the magic and mask fields of binfmt_misc (before that binfmt_misc would ignore everything after the first NUL). I also added cross-references under the description of --system in the manual, and a note about the =E2=80=98F=E2=80=99 flag of binfmt_misc. Pushed now! Thanks, Ludo=E2=80=99.