On Fri, 22 Jul 2022 21:04:28 +0200
Laurent Vivier <lviv...@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-68e43e67b...@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 <sbri...@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=...

-- 
Stefano


Reply via email to