Message ID | 20220722190442.301310-1-lvivier@redhat.com (mailing list archive) |
---|---|
Headers | show |
Series | qapi: net: add unix socket type support to netdev backend | expand |
On Fri, 22 Jul 2022 21:04:28 +0200 Laurent Vivier <lvivier@redhat.com> wrote: > "-netdev socket" only supports inet sockets. > > It's not a complex task to add support for unix sockets, but > the socket netdev parameters are not defined to manage well unix > socket parameters. > > As discussed in: > > "socket.c added support for unix domain socket datagram transport" > https://lore.kernel.org/qemu-devel/1C0E1BC5-904F-46B0-8044-68E43E67BE60@gmail.com/ > > This series adds support of unix socket type using SocketAddress QAPI structure. > > Two new netdev backends, "stream" and "dgram" are added, that are barely a copy of "socket" > backend but they use the SocketAddress QAPI to provide socket parameters. > And then they also implement unix sockets (TCP and UDP). For the series, Tested-by: Stefano Brivio <sbrivio@redhat.com> ...specifically, the stream-oriented AF_UNIX support, with passt (https://passt.top) and its test suite, running qemu (x86_64 KVM, and armv6l, armv7l, aarch64, ppc64, ppc64le, s390x TCG) with something on the lines of: -device virtio-net-pci,netdev=socket0 -netdev stream,id=socket0,server=off,addr.type=unix,addr.path=...