]> git.ipfire.org Git - thirdparty/qemu.git/commit
net: Add passt network backend
authorLaurent Vivier <lvivier@redhat.com>
Wed, 9 Jul 2025 08:24:24 +0000 (10:24 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 14 Jul 2025 05:27:09 +0000 (13:27 +0800)
commit854ee02b22220377f3fa3806adf7e0718c3a5c5a
treea1a079cf7cbfa9cf6e8ff7d71dc5a4e338e49a74
parentba5acc5d6e0bc9ab86619c92cb76493aa197d7a2
net: Add passt network backend

This commit introduces support for passt as a new network backend.
passt is an unprivileged, user-mode networking solution that provides
connectivity for virtual machines by launching an external helper process.

The implementation reuses the generic stream data handling logic. It
launches the passt binary using GSubprocess, passing it a file
descriptor from a socketpair() for communication. QEMU connects to
the other end of the socket pair to establish the network data stream.

The PID of the passt daemon is tracked via a temporary file to
ensure it is terminated when QEMU exits.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
12 files changed:
docs/system/devices/net.rst
hmp-commands.hx
meson.build
meson_options.txt
net/clients.h
net/hub.c
net/meson.build
net/net.c
net/passt.c [new file with mode: 0644]
qapi/net.json
qemu-options.hx
scripts/meson-buildoptions.sh