Re: [PATCH] vhost-user: Silence unsupported VHOST_USER_PROTOCOL_F_RARP error

2025-01-24 Thread Stefano Brivio
[Cc'ed Thibaut as author of 3e866365e1eb ("vhost user: add rarp sending after live migration for legacy guest")] On Wed, 22 Jan 2025 17:51:07 +0100 Stefano Garzarella wrote: > On Wed, Jan 22, 2025 at 05:41:15PM +0100, Laurent Vivier wrote: > >On 22/01/2025 17:20, Stefano Garzarella wrote: > >>

Re: [PATCH v13 17/17] net: stream: add QAPI events to report connection state

2022-10-24 Thread Stefano Brivio
On Mon, 24 Oct 2022 13:00:09 +0200 Markus Armbruster wrote: > Markus Armbruster writes: > > > Cc: Stefano Brivio > > > > Laurent Vivier writes: > > > >> On 10/21/22 07:48, Markus Armbruster wrote: > >>> Laurent Vivier writes: > &g

Re: [PATCH v13 17/17] net: stream: add QAPI events to report connection state

2022-10-21 Thread Stefano Brivio
[Cc: Laine, full quote] On Fri, 21 Oct 2022 11:12:20 +0200 Markus Armbruster wrote: > Cc: Stefano Brivio > > Laurent Vivier writes: > > > On 10/21/22 07:48, Markus Armbruster wrote: > >> Laurent Vivier writes: > >> > >>> The netdev report

Re: Fast usermode networking with QEMU

2022-09-19 Thread Stefano Brivio
Hi Anders, On Mon, 23 May 2022 14:51:17 -0600 "Anders Pitman" wrote: > I came across this blog post[0] concerning passt, which is an > alternative usermode networking implementation for QEMU. ...and I just came across your email, entirely by chance. I'm not actively monitoring this list most of

Re: [PATCH v8 00/14] qapi: net: add unix socket type support to netdev backend

2022-09-13 Thread Stefano Brivio
cture. > > 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 s

Re: [PATCH v7 00/14] qapi: net: add unix socket type support to netdev backend

2022-08-05 Thread Stefano Brivio
cture. > > 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

Re: [RFC PATCH v2 0/8] qapi: net: add unix socket type support to netdev backend

2022-05-13 Thread Stefano Brivio
5 > > -netdev dgram,id=socket0,local.type=fd,addr.str=4 > > v2: > - use "stream" and "dgram" rather than "socket-ng,mode=stream" > and ""socket-ng,mode=dgram" > - extract code to bypass qemu_opts_parse_noisily() to > a n

Re: [RFC PATCH 2/6] qapi: net: add socket-ng netdev

2022-05-10 Thread Stefano Brivio
On Mon, 9 May 2022 19:36:14 +0200 Laurent Vivier wrote: > Copied from socket netdev file and modified to use SocketAddress > to be able to introduce new features like unix socket. > > "udp" and "mcast" are squashed into dgram, multicast is detected > according to the IP address type. > "listen"

Re: [RFC PATCH 4/6] net: socket-ng: make dgram_dst generic

2022-05-10 Thread Stefano Brivio
On Mon, 9 May 2022 19:36:16 +0200 Laurent Vivier wrote: > dgram_dst is a sockaddr_in structure. To be able to use it with > unix socket, use a pointer to a generic sockaddr structure. > > Signed-off-by: Laurent Vivier > --- > net/socket-ng.c | 76 ++

Re: [RFC PATCH 1/6] net: introduce convert_host_port()

2022-05-10 Thread Stefano Brivio
On Mon, 9 May 2022 19:36:13 +0200 Laurent Vivier wrote: > Signed-off-by: Laurent Vivier > --- > include/qemu/sockets.h | 2 ++ > net/net.c | 62 ++ > 2 files changed, 34 insertions(+), 30 deletions(-) > > diff --git a/include/qemu/sockets.

Re: [RFC PATCH 0/6] qapi: net: add unix socket type support to netdev backend

2022-05-10 Thread Stefano Brivio
On Tue, 10 May 2022 10:22:48 +0100 Daniel P. Berrangé wrote: > On Tue, May 10, 2022 at 10:59:08AM +0200, Stefano Brivio wrote: > > On Tue, 10 May 2022 09:26:39 +0100 > > Daniel P. Berrangé wrote: > > > > > On Mon, May 09, 2022 at 07:36:12PM +0200, Laurent Vi

Re: [RFC PATCH 0/6] qapi: net: add unix socket type support to netdev backend

2022-05-10 Thread Stefano Brivio
On Tue, 10 May 2022 09:26:39 +0100 Daniel P. Berrangé wrote: > On Mon, May 09, 2022 at 07:36:12PM +0200, Laurent Vivier 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

Re: "make check-acceptance" takes way too long

2022-02-01 Thread Stefano Brivio
On Tue, 1 Feb 2022 12:47:48 -0500 Cleber Rosa wrote: > On Tue, Feb 1, 2022 at 11:20 AM Daniel P. Berrangé > wrote: > > > > On Tue, Feb 01, 2022 at 11:01:43AM -0500, Cleber Rosa wrote: > > > On Tue, Feb 1, 2022 at 6:25 AM Alex Bennée > > > wrote: > > > > > > > > We have up to now tried reall

Re: "make check-acceptance" takes way too long

2022-02-01 Thread Stefano Brivio
On Tue, 1 Feb 2022 09:06:25 + Daniel P. Berrangé wrote: > On Tue, Feb 01, 2022 at 07:31:39AM +0100, Stefano Brivio wrote: > > Hi, > > > > On Tue, 25 Jan 2022 10:20:11 +0100 > > Gerd Hoffmann wrote: > > > > > Hi, > > > > > >

Re: "make check-acceptance" takes way too long

2022-01-31 Thread Stefano Brivio
Hi, On Tue, 25 Jan 2022 10:20:11 +0100 Gerd Hoffmann wrote: > Hi, > > > IMHO the ideal scenario would be for us to have a kernel, initrd > > containing just busybox tools for the key arch targets we care > > about. Those could be used with direct kernel boot or stuffed > > into a disk iamge.

Re: socket.c added support for unix domain socket datagram transport

2021-04-27 Thread Stefano Brivio
On Mon, 26 Apr 2021 13:56:40 +0100 Daniel P. Berrangé wrote: > On Fri, Apr 23, 2021 at 06:54:08PM +0200, Stefano Brivio wrote: > > On Fri, 23 Apr 2021 17:21:38 +0100 > > Daniel P. Berrangé wrote: > > > The current IP socket impl for the net socket backend uses SOC

Re: socket.c added support for unix domain socket datagram transport

2021-04-27 Thread Stefano Brivio
On Mon, 26 Apr 2021 13:14:48 +0200 Ralph Schmieder wrote: > > On Apr 23, 2021, at 18:39, Stefano Brivio > > wrote: > > > > [...] > > > > Okay, so it doesn't seem to fit your case, but this specific point > > is where you actually have a small a

Re: socket.c added support for unix domain socket datagram transport

2021-04-23 Thread Stefano Brivio
On Fri, 23 Apr 2021 17:21:38 +0100 Daniel P. Berrangé wrote: > On Fri, Apr 23, 2021 at 05:29:40PM +0200, Stefano Brivio wrote: > > Hi Ralph, > > > > On Fri, 23 Apr 2021 08:56:48 +0200 > > Ralph Schmieder wrote: > > > > > Hey... new to this list.

Re: socket.c added support for unix domain socket datagram transport

2021-04-23 Thread Stefano Brivio
On Fri, 23 Apr 2021 17:48:08 +0200 Ralph Schmieder wrote: > Hi, Stefano... Thanks for the detailed response... inline > Thanks, > -ralph > > > > On Apr 23, 2021, at 17:29, Stefano Brivio > > wrote: > > > > Hi Ralph, > > > > On Fri, 23

[PATCH 0/2] Support for AF_UNIX -netdev socket and a small fix

2021-04-23 Thread Stefano Brivio
Patch 1/2 introduces support for AF_UNIX stream-oriented socket to be passed as -netdev, and patch 2/2 fixes a minor issue I found while trying to connect to an invalid path. Stefano Brivio (2): net: Allow also UNIX domain sockets to be used as -netdev socket net: Don't ignore EINV

[PATCH 1/2] net: Allow also UNIX domain sockets to be used as -netdev socket

2021-04-23 Thread Stefano Brivio
It has lower overhead compared to TCP, doesn't need a free port and the adaptation is trivial. Signed-off-by: Stefano Brivio --- net/socket.c| 106 qemu-options.hx | 12 +++--- 2 files changed, 94 insertions(+), 24 deletions(-) diff --

[PATCH 2/2] net: Don't ignore EINVAL on netdev socket connection

2021-04-23 Thread Stefano Brivio
Other errors are treated as failure by net_socket_connect_init(), but if connect() returns EINVAL, we'll fail silently. Remove the related exception. Signed-off-by: Stefano Brivio --- net/socket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/socket.c b/net/soc

Re: socket.c added support for unix domain socket datagram transport

2021-04-23 Thread Stefano Brivio
Hi Ralph, On Fri, 23 Apr 2021 08:56:48 +0200 Ralph Schmieder wrote: > Hey... new to this list. I was looking for a way to use Unix domain > sockets as a network transport between local VMs. > > I'm part of a team where we run dozens if not hundreds of VMs on a > single compute instance which