Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-11-27 Thread Mike Lovell
On 11/27/2012 07:24 AM, Anthony Liguori wrote: Stefan Hajnoczi writes: The part I'm wondering about with VXLAN multicast is whether all QEMU processes on the host need to receive on the same well-known UDP port. Not sure if that's possible with the sockets API. Perhaps this is a dumb questi

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-11-27 Thread Mike Lovell
On 11/27/2012 05:42 AM, Stefan Hajnoczi wrote: On Mon, Nov 26, 2012 at 6:19 PM, Mike Lovell wrote: i think it does still make sense to implement it in QEMU. there isn't a problem with multiple processes using the same multicast address. the net_socket_mcast_create function in socket.c already s

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-11-27 Thread Anthony Liguori
Stefan Hajnoczi writes: > On Mon, Nov 26, 2012 at 6:19 PM, Mike Lovell wrote: >> i think it does still make sense to implement it in QEMU. there isn't a >> problem with multiple processes using the same multicast address. the >> net_socket_mcast_create function in socket.c already sets the >> IP

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-11-27 Thread Stefan Hajnoczi
On Mon, Nov 26, 2012 at 6:19 PM, Mike Lovell wrote: > i think it does still make sense to implement it in QEMU. there isn't a > problem with multiple processes using the same multicast address. the > net_socket_mcast_create function in socket.c already sets the > IP_MULTICAST_LOOP option which mak

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-11-26 Thread Mike Lovell
On 11/24/2012 08:21 AM, Stefan Hajnoczi wrote: On Mon, Jun 25, 2012 at 7:42 AM, Mike Lovell wrote: This is what I've been calling QDES or QEMU Distributed Ethernet Switch. I first had the idea when I was playing with the udp and mcast socket network backends while exploring how to build a VM in

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-11-24 Thread Stefan Hajnoczi
On Mon, Jun 25, 2012 at 7:42 AM, Mike Lovell wrote: > This is what I've been calling QDES or QEMU Distributed Ethernet Switch. I > first had the idea when I was playing with the udp and mcast socket network > backends while exploring how to build a VM infrastructure. I liked the idea of > using th

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-28 Thread Stefan Hajnoczi
On Wed, Jun 27, 2012 at 7:37 PM, Mike Lovell wrote: > On 06/27/2012 02:26 AM, Stefan Hajnoczi wrote: >> >> On Tue, Jun 26, 2012 at 5:48 PM, Mike Lovell wrote: >>> >>> you can connect multiple guests to a single vde_switch. as i understand >>> it, >>> the communication happens over a local unix do

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-27 Thread Mike Lovell
On 06/27/2012 02:26 AM, Stefan Hajnoczi wrote: On Tue, Jun 26, 2012 at 5:48 PM, Mike Lovell wrote: you can connect multiple guests to a single vde_switch. as i understand it, the communication happens over a local unix domain socket. this would limit the guests on the same switch to the same ho

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-27 Thread Stefan Hajnoczi
On Tue, Jun 26, 2012 at 5:48 PM, Mike Lovell wrote: > On 06/26/2012 02:29 AM, Stefan Hajnoczi wrote: >> >> On Mon, Jun 25, 2012 at 5:32 PM, Mike Lovell wrote: >>> >>> >>> Oh. I forgot another reason why I decided to do this over using VDE. I'll >>> do >>> this one with an example. Say you have 3

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-26 Thread Mike Lovell
On 06/26/2012 02:29 AM, Stefan Hajnoczi wrote: On Mon, Jun 25, 2012 at 5:32 PM, Mike Lovell wrote: Oh. I forgot another reason why I decided to do this over using VDE. I'll do this one with an example. Say you have 3 virtual machines on 3 different hosts. Each host has a vde_switch process run

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-26 Thread Stefan Hajnoczi
On Mon, Jun 25, 2012 at 5:32 PM, Mike Lovell wrote: > On 06/25/2012 09:33 AM, Mike Lovell wrote: >> >> On 06/25/2012 04:40 AM, Stefan Hajnoczi wrote: >>> >>> Have you looked at QEMU's net/vde.c backend? >>> >>> Does VDE (http://vde.sourceforge.net/) already do everything that QDES >>> does? >>> >>

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-25 Thread Mike Lovell
On 06/25/2012 09:33 AM, Mike Lovell wrote: On 06/25/2012 04:40 AM, Stefan Hajnoczi wrote: Have you looked at QEMU's net/vde.c backend? Does VDE (http://vde.sourceforge.net/) already do everything that QDES does? Stefan I have looked at VDE and used it for a few things. I think QDES has an

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-25 Thread Mike Lovell
On 06/25/2012 04:40 AM, Stefan Hajnoczi wrote: On Mon, Jun 25, 2012 at 6:42 AM, Mike Lovell wrote: This is what I've been calling QDES or QEMU Distributed Ethernet Switch. I first had the idea when I was playing with the udp and mcast socket network backends while exploring how to build a VM in

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-25 Thread Stefan Hajnoczi
On Mon, Jun 25, 2012 at 6:42 AM, Mike Lovell wrote: > This is what I've been calling QDES or QEMU Distributed Ethernet Switch. I > first had the idea when I was playing with the udp and mcast socket network > backends while exploring how to build a VM infrastructure. I liked the idea of > using th

[Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-25 Thread Mike Lovell
Hi all, Here is something I've been tinkering with the past few weeks and now have it in a state where the basic idea makes sense, it works, and could use some feedback from the community. This is what I've been calling QDES or QEMU Distributed Ethernet Switch. I first had the idea when I was pla