From: Xinhui Yang <cyan@cyano.uk>
To: qemu-devel@nongnu.org
Cc: Laurent Vivier <laurent@vivier.eu>, Helge Deller <deller@gmx.de>,
Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,
Mingcong Bai <jeffbai@aosc.io>, Xinhui Yang <cyan@cyano.uk>
Subject: [PATCH v2 0/2] linux-user: implement fsmount(2) series of syscalls
Date: Wed, 27 May 2026 18:11:26 +0800 [thread overview]
Message-ID: <cover.1779876076.git.cyan@cyano.uk> (raw)
The motivation of the implementation is to allow any foreign guest OSes
with systemd v259+ to boot using systemd-nspawn(1), otherwise any
systemd service requiring importing credentials will fail, including
journald, D-Bus service and getty. We used to work around this issue by
patching systemd to retry the clone() without CLONE_NEWNS, which is not
and can not be implemented in QEMU user emulation.
mount(8) from util-linux worked prior to this patch because it will
fallback to the old mount(2) syscall if fsmount(8) series of syscalls
is not available.
Tested good on an x86-64 host, with:
- an AOSC OS mips64r6el guest, which boots successfully with full systemd
support using systemd-nspawn(1).
- a Gentoo ppc (big endian) guest, which boots successfully with full
systemd support, using systemd-nspawn(1).
Changes from v1:
* Add missing guard for FSCONFIG_CMD_CREATE_EXCL in strace.c, since it is
only available since 6.6.
* Fix some wording issues in the cover letter.
Xinhui Yang (2):
linux-user: implement fsmount(2) series of syscalls
linux-user/strace: add fsmount series of syscalls
linux-user/strace.c | 105 +++++++++++++++++++++++++++++++++++++++++
linux-user/strace.list | 15 ++++++
linux-user/syscall.c | 81 +++++++++++++++++++++++++++++++
3 files changed, 201 insertions(+)
--
2.52.0
next reply other threads:[~2026-05-27 13:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-27 10:11 Xinhui Yang [this message]
2026-05-27 10:11 ` [PATCH v2 1/2] linux-user: implement fsmount(2) series of syscalls Xinhui Yang
2026-05-28 19:07 ` Pierrick Bouvier
2026-05-29 6:40 ` Xinhui Yang
2026-05-27 10:11 ` [PATCH v2 2/2] linux-user/strace: add fsmount " Xinhui Yang
2026-05-28 19:07 ` Pierrick Bouvier
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=cover.1779876076.git.cyan@cyano.uk \
--to=cyan@cyano.uk \
--cc=deller@gmx.de \
--cc=jeffbai@aosc.io \
--cc=laurent@vivier.eu \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.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.
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.