From: "Ludovic Courtès" <ludo@gnu.org>
To: 20239@debbugs.gnu.org
Subject: bug#20239: [PATCH 0/4] Transparent emulation with QEMU and binfmt_misc
Date: Tue, 9 Jan 2018 17:14:23 +0100 [thread overview]
Message-ID: <20180109161427.28836-1-ludo@gnu.org> (raw)
In-Reply-To: <87tw6d1j7a.fsf@gnu.org>
Hello!
I’ve finally implemented what we had discussed earlier: binfmt_misc
handlers that invoke QEMU to run code built for “foreign” architectures,
and an extension to the guix-daemon service that automatically adds
--chroot-directory flags for QEMU and all of its dependencies (as
returned by “guix gc -R $(guix build qemu)”.) Pretty nice!
That adds a lot of stuff to the chroot, 87 store items currently. I
believe it does not harm reproducibility though: these are unguessable
file names so it’s unlikely that a build process will use one of these
87 store items without having declared it as an input. It’s still best
to avoid using it on our build farm though, to be sure.
Another issue is the extent to which QEMU faithfully emulates CPUs in
practice. I have no idea, though I suspect Spectre attacks don’t work
in QEMU. :-) I think we’ll have to play with this and use ‘guix
challenge’ to see whether we get the same output as bare metal builds.
Note: for the real patch set, I’ll introduce a ‘guix’ package update in
the middle, without which we don’t get the ENOEXEC change in
‘guix-daemon’.
Feedback welcome!
Ludo’.
Ludovic Courtès (4):
services: Add qemu-binfmt.
services: guix: Add 'chroot-directories' field.
services: qemu-binfmt: Extend guix-daemon with extra chroot
directories.
daemon: Always try to execute the builder regardless of the platform.
doc/guix.texi | 88 +++++++++++++-
gnu/services/base.scm | 64 ++++++++--
gnu/services/virtualization.scm | 261 +++++++++++++++++++++++++++++++++++++++-
nix/libstore/build.cc | 23 ++--
4 files changed, 414 insertions(+), 22 deletions(-)
--
2.15.1
next prev parent reply other threads:[~2018-01-09 16:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 21:37 bug#20239: [wishlist] Add build hook to build for other platforms using qemu Mark H Weaver
2015-09-11 17:36 ` Ludovic Courtès
2017-03-23 23:16 ` Ludovic Courtès
2017-03-28 16:04 ` Ludovic Courtès
2018-01-09 16:14 ` Ludovic Courtès [this message]
2018-01-09 16:14 ` bug#20239: [PATCH 1/4] services: Add qemu-binfmt Ludovic Courtès
2018-01-09 20:41 ` Danny Milosavljevic
2018-01-11 13:46 ` Ludovic Courtès
2018-01-09 16:14 ` bug#20239: [PATCH 2/4] services: guix: Add 'chroot-directories' field Ludovic Courtès
2018-01-09 20:48 ` Danny Milosavljevic
2018-01-09 16:14 ` bug#20239: [PATCH 3/4] services: qemu-binfmt: Extend guix-daemon with extra chroot directories Ludovic Courtès
2018-01-09 20:43 ` Danny Milosavljevic
2018-01-09 16:14 ` bug#20239: [PATCH 4/4] daemon: Always try to execute the builder regardless of the platform Ludovic Courtès
2018-01-09 20:34 ` Danny Milosavljevic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180109161427.28836-1-ludo@gnu.org \
--to=ludo@gnu.org \
--cc=20239@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.