]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: QMP-varlink bridge for VM runtime control
authorChristian Brauner <brauner@kernel.org>
Wed, 8 Apr 2026 07:02:37 +0000 (09:02 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 15 Apr 2026 08:14:48 +0000 (10:14 +0200)
commit0d8fb7d543e062efd3186ffe9da6b1e84fa63f95
tree38a052089514634933986f7785646ee2f5f80f7c
parent6bfa7aa0509a3d612ffef5d56b7663454765e8ac
vmspawn: QMP-varlink bridge for VM runtime control

Create a QMP socketpair for QEMU machine monitor control, configure
the QMP chardev+mon via the QEMU config file, and wire up the bridge
infrastructure.

After fork, vmspawn initializes the QMP bridge, probes QEMU feature
support synchronously (driving the QMP handshake to RUNNING
transparently), resumes vCPUs, then sets up the varlink server for
runtime VM control. The control socket path is passed to machined via
the controlAddress field in machine registration.

Device configuration still uses the legacy INI config path and will
be converted to bridge calls in subsequent commits.

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