]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: convert network device setup to bridge
authorChristian Brauner <brauner@kernel.org>
Tue, 7 Apr 2026 12:47:10 +0000 (14:47 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 15 Apr 2026 08:14:48 +0000 (10:14 +0200)
commitcc045f5326a15f5a3ed2b40afc7cc5ff5efcd999
tree632b3f3fd3e479103dc74c77acc6ad6664ea2632
parent0d8fb7d543e062efd3186ffe9da6b1e84fa63f95
vmspawn: convert network device setup to bridge

Remove the static netdev/nic INI config sections for both privileged
TAP, nsresourced TAP, and user-mode networking. Replace them with a
NetworkInfo struct that captures the network type, TAP fd or interface
name, and MAC address, passed to vmspawn_varlink_setup_network() for
runtime configuration via QMP.

For the nsresourced TAP path the fd is now passed to QEMU via QMP
getfd + SCM_RIGHTS instead of being inherited through pass_fds.

Declare the MachineConfig aggregate that this and the following
conversion patches populate, zero-initialized with explicit -EBADF
for the fd fields so every sub-structure cleans up safely regardless
of which device types the invocation ends up using.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
src/vmspawn/vmspawn.c