diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2025-07-09 10:24:24 +0200 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2025-07-14 13:27:09 +0800 |
| commit | 854ee02b22220377f3fa3806adf7e0718c3a5c5a (patch) | |
| tree | a1a079cf7cbfa9cf6e8ff7d71dc5a4e338e49a74 /net/hub.c | |
| parent | ba5acc5d6e0bc9ab86619c92cb76493aa197d7a2 (diff) | |
| download | focaccia-qemu-854ee02b22220377f3fa3806adf7e0718c3a5c5a.tar.gz focaccia-qemu-854ee02b22220377f3fa3806adf7e0718c3a5c5a.zip | |
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>
Diffstat (limited to 'net/hub.c')
| -rw-r--r-- | net/hub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/hub.c b/net/hub.c index cba20ebd87..e3b58b1c4f 100644 --- a/net/hub.c +++ b/net/hub.c @@ -285,6 +285,9 @@ void net_hub_check_clients(void) case NET_CLIENT_DRIVER_NIC: has_nic = 1; break; +#ifdef CONFIG_PASST + case NET_CLIENT_DRIVER_PASST: +#endif case NET_CLIENT_DRIVER_USER: case NET_CLIENT_DRIVER_TAP: case NET_CLIENT_DRIVER_SOCKET: |