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 /hmp-commands.hx | |
| 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 'hmp-commands.hx')
| -rw-r--r-- | hmp-commands.hx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx index 06746f0afc..d0e4f35a30 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1287,6 +1287,9 @@ ERST .name = "netdev_add", .args_type = "netdev:O", .params = "[user|tap|socket|stream|dgram|vde|bridge|hubport|netmap|vhost-user" +#ifdef CONFIG_PASST + "|passt" +#endif #ifdef CONFIG_AF_XDP "|af-xdp" #endif |