search for: af_vsock

Displaying 20 results from an estimated 335 matches for "af_vsock".

2019 Nov 21
2
[PATCH net-next 3/6] vsock: add local transport support in the vsock core
...edhat.com] > Sent: Tuesday, November 19, 2019 12:01 PM > To: netdev at vger.kernel.org > > This patch allows to register a transport able to handle > local communication (loopback). > > Signed-off-by: Stefano Garzarella <sgarzare at redhat.com> > --- > include/net/af_vsock.h | 2 ++ > net/vmw_vsock/af_vsock.c | 17 ++++++++++++++++- > 2 files changed, 18 insertions(+), 1 deletion(-) > > diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h > index 4206dc6d813f..b1c717286993 100644 > --- a/include/net/af_vsock.h > +++ b/include/net/af_v...
2019 Nov 21
2
[PATCH net-next 3/6] vsock: add local transport support in the vsock core
...edhat.com] > Sent: Tuesday, November 19, 2019 12:01 PM > To: netdev at vger.kernel.org > > This patch allows to register a transport able to handle > local communication (loopback). > > Signed-off-by: Stefano Garzarella <sgarzare at redhat.com> > --- > include/net/af_vsock.h | 2 ++ > net/vmw_vsock/af_vsock.c | 17 ++++++++++++++++- > 2 files changed, 18 insertions(+), 1 deletion(-) > > diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h > index 4206dc6d813f..b1c717286993 100644 > --- a/include/net/af_vsock.h > +++ b/include/net/af_v...
2019 Nov 21
2
[PATCH net-next 3/6] vsock: add local transport support in the vsock core
...tdev at vger.kernel.org > > > > > > This patch allows to register a transport able to handle > > > local communication (loopback). > > > > > > Signed-off-by: Stefano Garzarella <sgarzare at redhat.com> > > > --- > > > include/net/af_vsock.h | 2 ++ > > > net/vmw_vsock/af_vsock.c | 17 ++++++++++++++++- > > > 2 files changed, 18 insertions(+), 1 deletion(-) > > > > > > diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h > > > index 4206dc6d813f..b1c717286993 100644 > > &g...
2019 Nov 21
2
[PATCH net-next 3/6] vsock: add local transport support in the vsock core
...tdev at vger.kernel.org > > > > > > This patch allows to register a transport able to handle > > > local communication (loopback). > > > > > > Signed-off-by: Stefano Garzarella <sgarzare at redhat.com> > > > --- > > > include/net/af_vsock.h | 2 ++ > > > net/vmw_vsock/af_vsock.c | 17 ++++++++++++++++- > > > 2 files changed, 18 insertions(+), 1 deletion(-) > > > > > > diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h > > > index 4206dc6d813f..b1c717286993 100644 > > &g...
2014 May 01
1
[PATCH] vsock: Make transport the proto owner
...ich results in a panic. Fix that by allowing the transport to be the owner, which will refcount it properly. Includes version bump to 1.0.1.0-k Cc: stable at vger.kernel.org Acked-by: Dmitry Torokhov <dtor at vmware.com> Signed-off-by: Andy King <acking at vmware.com> --- include/net/af_vsock.h | 6 +++++- net/vmw_vsock/af_vsock.c | 46 +++++++++++++++++++++------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h index 7d64d36..8f02e5c 100644 --- a/include/net/af_vsock.h +++ b/include/net/af_vsock.h...
2014 May 01
1
[PATCH] vsock: Make transport the proto owner
...ich results in a panic. Fix that by allowing the transport to be the owner, which will refcount it properly. Includes version bump to 1.0.1.0-k Cc: stable at vger.kernel.org Acked-by: Dmitry Torokhov <dtor at vmware.com> Signed-off-by: Andy King <acking at vmware.com> --- include/net/af_vsock.h | 6 +++++- net/vmw_vsock/af_vsock.c | 46 +++++++++++++++++++++------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h index 7d64d36..8f02e5c 100644 --- a/include/net/af_vsock.h +++ b/include/net/af_vsock.h...
2019 Oct 18
0
[PATCH nbdkit] Add support for AF_VSOCK.
On platforms which support it (only Linux currently) nbdkit can act as a vsock server. Guests running on the host see a raw NBD socket which it can connect to by opening an AF_VSOCK connection. (Although only libnbd supports this). The current limitations are: * nbdkit can only act as a host (cid == VMADDR_CID_HOST == 2). * There is no access control. Any guest which has vsock enabled can open the socket. * nbdkit can only listen on either TCP/IP or AF_VSOCK, not b...
2019 Oct 18
2
[PATCH nbdkit] Add support for AF_VSOCK.
This is a series of patches to libnbd and nbdkit adding AF_VSOCK support. On the host side it allows you to start an nbdkit instance which listens on a virtio-vsock socket: $ ./nbdkit -fv --vsock memory 1G ... nbdkit: debug: bound to vsock 2:10809 On the guest side you can then use libnbd to connect to the server: $ ./run nbdsh -c 'h.connect_vsock(2, 10...
2019 Oct 18
1
[PATCH nbdkit v2] Add support for AF_VSOCK.
v1 was discussed here: https://www.redhat.com/archives/libguestfs/2019-October/thread.html#00100 v2: - Bind to VMADDR_CID_ANY (instead of HOST) and update the documentation accordingly. - Don't bother with SOCK_CLOEXEC fallback path that can never be used. Rich.
2019 Oct 18
0
Re: [PATCH libnbd 2/2] api: Add support for AF_VSOCK.
On Fri, Oct 18, 2019 at 10:58:43AM -0500, Eric Blake wrote: > On 10/18/19 10:39 AM, Richard W.M. Jones wrote: > >+Connect (synchronously) over the C<AF_VSOCK> protocol from a > >+virtual machine to an NBD server, usually running on the host. The > >+C<cid> and C<port> parameters specify the server address. Usually > >+C<cid> should be C<2> (to connect to the host), and C<port> might be > >+C<...
2013 Feb 18
5
[PATCH 0/4] Minor vSockets fixes
...two of which were reported on LKML. Andy King (2): VSOCK: Remove hypervisor-only socket option VSOCK: Don't reject PF_VSOCK protocol Dmitry Torokhov (2): VSOCK: get rid of EXPORT_SYMTAB VSOCK: get rid of vsock_version.h include/uapi/linux/vm_sockets.h | 8 -------- net/vmw_vsock/af_vsock.c | 7 ++----- net/vmw_vsock/vmci_transport.c | 2 -- net/vmw_vsock/vsock_version.h | 22 ---------------------- 4 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 net/vmw_vsock/vsock_version.h -- 1.7.4.1
2013 Feb 18
5
[PATCH 0/4] Minor vSockets fixes
...two of which were reported on LKML. Andy King (2): VSOCK: Remove hypervisor-only socket option VSOCK: Don't reject PF_VSOCK protocol Dmitry Torokhov (2): VSOCK: get rid of EXPORT_SYMTAB VSOCK: get rid of vsock_version.h include/uapi/linux/vm_sockets.h | 8 -------- net/vmw_vsock/af_vsock.c | 7 ++----- net/vmw_vsock/vmci_transport.c | 2 -- net/vmw_vsock/vsock_version.h | 22 ---------------------- 4 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 net/vmw_vsock/vsock_version.h -- 1.7.4.1
2019 Oct 18
4
Re: [PATCH libnbd 2/2] api: Add support for AF_VSOCK.
On 10/18/19 10:39 AM, Richard W.M. Jones wrote: > This adds a new API for connecting to AF_VSOCK protocol > (https://wiki.qemu.org/Features/VirtioVsock). > > For example: > > nbd_connect_vsock (nbd, 2, 10809); > > There is no test of this feature because it only works between guest > and host. You cannot start a server and client on the host and talk > between...
2016 Apr 08
0
[RFC v5 0/5] Add virtio transport for AF_VSOCK
...9;m not entirely sure if this behaviour contradicts this or not (the bits have both been set at #2, but not at the same time). BTW, how does one tell if there are no more virtqueue buffers pending or not while processing the op? Another thing I noticed, which is really more to do with the generic AF_VSOCK bits than anything to do with your patches is that there is no limitations on which vsock ports a non-privileged user can bind to and relatedly that there is no netns support so e.g. users in unproivileged containers can bind to any vsock port and talk to the host, which might be undesirable. For m...
2019 Oct 18
2
Re: [PATCH nbdkit] Add support for AF_VSOCK.
On 10/18/19 10:38 AM, Richard W.M. Jones wrote: > On platforms which support it (only Linux currently) nbdkit can act as > a vsock server. Guests running on the host see a raw NBD socket which > it can connect to by opening an AF_VSOCK connection. (Although only > libnbd supports this). > > The current limitations are: > > * nbdkit can only act as a host (cid == VMADDR_CID_HOST == 2). How hard would it be to allow a different cid to run a server on the guest and client on the host? > > * There is n...
2019 Oct 09
1
[RFC PATCH 10/13] vsock: add multi-transports support
On Fri, Sep 27, 2019 at 01:27:00PM +0200, Stefano Garzarella wrote: > RFC: > - I'd like to move MODULE_ALIAS_NETPROTO(PF_VSOCK) to af_vsock.c. > @Jorgen could this break the VMware products? What will cause the vmw_vsock_vmci_transport.ko module to be loaded after you remove MODULE_ALIAS_NETPROTO(PF_VSOCK)? Perhaps drivers/misc/vmw_vmci/vmci_guest.c:vmci_guest_probe_device() could do something when the guest driver loads. There...
2015 Oct 29
1
[PATCH] VSOCK: define VSOCK_SS_LISTEN once only
The SS_LISTEN socket state is defined by both af_vsock.c and vmci_transport.c. This is risky since the value could be changed in one file and the other would be out of sync. Rename from SS_LISTEN to VSOCK_SS_LISTEN since the constant is not part of enum socket_state (SS_CONNECTED, ...). This way it is clear that the constant is vsock-specific. The...
2015 Oct 29
1
[PATCH] VSOCK: define VSOCK_SS_LISTEN once only
The SS_LISTEN socket state is defined by both af_vsock.c and vmci_transport.c. This is risky since the value could be changed in one file and the other would be out of sync. Rename from SS_LISTEN to VSOCK_SS_LISTEN since the constant is not part of enum socket_state (SS_CONNECTED, ...). This way it is clear that the constant is vsock-specific. The...
2016 Dec 08
1
[PATCH v2 4/4] vsock: cancel packets when failing to connect
...OUT on connect, guest > will get the connect requests from failed host sockets. > > Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com> > Signed-off-by: Peng Tao <bergwolf at gmail.com> > --- > include/linux/virtio_vsock.h | 7 +++++++ > net/vmw_vsock/af_vsock.c | 7 +++++++ > net/vmw_vsock/virtio_transport_common.c | 7 ------- > 3 files changed, 14 insertions(+), 7 deletions(-) > > diff --git a/include/linux/virtio_vsock.h b/include/linux/virtio_vsock.h > index b92e88d..ff6850a 100644 > --- a/include/linux/virtio_vsock...
2016 Dec 08
1
[PATCH v2 4/4] vsock: cancel packets when failing to connect
...OUT on connect, guest > will get the connect requests from failed host sockets. > > Reviewed-by: Stefan Hajnoczi <stefanha at redhat.com> > Signed-off-by: Peng Tao <bergwolf at gmail.com> > --- > include/linux/virtio_vsock.h | 7 +++++++ > net/vmw_vsock/af_vsock.c | 7 +++++++ > net/vmw_vsock/virtio_transport_common.c | 7 ------- > 3 files changed, 14 insertions(+), 7 deletions(-) > > diff --git a/include/linux/virtio_vsock.h b/include/linux/virtio_vsock.h > index b92e88d..ff6850a 100644 > --- a/include/linux/virtio_vsock...