[PATCH net-next 0/3] vsock: support network namespace

2020-01-16 Thread Stefano Garzarella
RFC -> v1: * added 'netns' module param to vsock.ko to enable the network namespace support (disabled by default) * added 'vsock_net_eq()' to check the "net" assigned to a socket only when 'netns' support is enabled RFC: https://patchwork.ozlabs.org/cover/1202235/ Now that we have multi-t

Re: [PATCH net-next 0/3] vsock: support network namespace

2020-01-21 Thread Stefan Hajnoczi
What should vsock_dev_do_ioctl() IOCTL_VM_SOCKETS_GET_LOCAL_CID return? The answer is probably dependent on the caller's network namespace. Ultimately we may need per-namespace transports. Imagine assigning a G2H transport to a specific network namespace. vsock_stream_connect() needs to be names

Re: [PATCH net-next 0/3] vsock: support network namespace

2020-01-22 Thread Stefano Garzarella
On Tue, Jan 21, 2020 at 03:50:53PM +, Stefan Hajnoczi wrote: > What should vsock_dev_do_ioctl() IOCTL_VM_SOCKETS_GET_LOCAL_CID return? > The answer is probably dependent on the caller's network namespace. Right, and I'm not handling this case. I'll fix! > > Ultimately we may need per-namespa

Re: [PATCH net-next 0/3] vsock: support network namespace

2020-04-27 Thread Stefano Garzarella
Hi David, Michael, Stefan, I'm restarting to work on this topic since Kata guys are interested to have that, especially on the guest side. While working on the v2 I had few doubts, and I'd like to have your suggestions: 1. netns assigned to the device inside the guest Currently I assigned th

Re: [PATCH net-next 0/3] vsock: support network namespace

2020-04-27 Thread Michael S. Tsirkin
On Mon, Apr 27, 2020 at 04:25:18PM +0200, Stefano Garzarella wrote: > Hi David, Michael, Stefan, > I'm restarting to work on this topic since Kata guys are interested to > have that, especially on the guest side. > > While working on the v2 I had few doubts, and I'd like to have your > suggestions

Re: [PATCH net-next 0/3] vsock: support network namespace

2020-04-27 Thread Stefano Garzarella
On Mon, Apr 27, 2020 at 10:31:57AM -0400, Michael S. Tsirkin wrote: > On Mon, Apr 27, 2020 at 04:25:18PM +0200, Stefano Garzarella wrote: > > Hi David, Michael, Stefan, > > I'm restarting to work on this topic since Kata guys are interested to > > have that, especially on the guest side. > > > > W

Re: [PATCH net-next 0/3] vsock: support network namespace

2020-04-28 Thread Jason Wang
On 2020/4/27 下午10:25, Stefano Garzarella wrote: Hi David, Michael, Stefan, I'm restarting to work on this topic since Kata guys are interested to have that, especially on the guest side. While working on the v2 I had few doubts, and I'd like to have your suggestions: 1. netns assigned to the

Re: [PATCH net-next 0/3] vsock: support network namespace

2020-04-28 Thread Stefano Garzarella
On Tue, Apr 28, 2020 at 04:13:22PM +0800, Jason Wang wrote: > > On 2020/4/27 下午10:25, Stefano Garzarella wrote: > > Hi David, Michael, Stefan, > > I'm restarting to work on this topic since Kata guys are interested to > > have that, especially on the guest side. > > > > While working on the v2 I

Re: [PATCH net-next 0/3] vsock: support network namespace

2020-04-29 Thread Jason Wang
On 2020/4/29 上午12:00, Stefano Garzarella wrote: On Tue, Apr 28, 2020 at 04:13:22PM +0800, Jason Wang wrote: On 2020/4/27 下午10:25, Stefano Garzarella wrote: Hi David, Michael, Stefan, I'm restarting to work on this topic since Kata guys are interested to have that, especially on the guest side.