Home
last modified time | relevance | path

Searched refs:vsock (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/net/vmw_vsock/
Dvirtio_transport.c76 struct virtio_vsock *vsock = virtio_vsock_get(); in virtio_transport_get_local_cid() local
78 return vsock->guest_cid; in virtio_transport_get_local_cid()
83 struct virtio_vsock *vsock = in virtio_transport_loopback_work() local
87 spin_lock_bh(&vsock->loopback_list_lock); in virtio_transport_loopback_work()
88 list_splice_init(&vsock->loopback_list, &pkts); in virtio_transport_loopback_work()
89 spin_unlock_bh(&vsock->loopback_list_lock); in virtio_transport_loopback_work()
91 mutex_lock(&vsock->rx_lock); in virtio_transport_loopback_work()
100 mutex_unlock(&vsock->rx_lock); in virtio_transport_loopback_work()
103 static int virtio_transport_send_pkt_loopback(struct virtio_vsock *vsock, in virtio_transport_send_pkt_loopback() argument
108 spin_lock_bh(&vsock->loopback_list_lock); in virtio_transport_send_pkt_loopback()
[all …]
DMakefile2 obj-$(CONFIG_VSOCKETS) += vsock.o
9 vsock-y += af_vsock.o af_vsock_tap.o vsock_addr.o
Dvmci_transport.c498 static bool vmci_transport_is_trusted(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_is_trusted() argument
500 return vsock->trusted || in vmci_transport_is_trusted()
501 vmci_is_context_owner(peer_cid, vsock->owner->uid); in vmci_transport_is_trusted()
508 static bool vmci_transport_allow_dgram(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_allow_dgram() argument
513 if (vsock->cached_peer != peer_cid) { in vmci_transport_allow_dgram()
514 vsock->cached_peer = peer_cid; in vmci_transport_allow_dgram()
515 if (!vmci_transport_is_trusted(vsock, peer_cid) && in vmci_transport_allow_dgram()
518 vsock->cached_peer_allow_dgram = false; in vmci_transport_allow_dgram()
520 vsock->cached_peer_allow_dgram = true; in vmci_transport_allow_dgram()
524 return vsock->cached_peer_allow_dgram; in vmci_transport_allow_dgram()
DKconfig16 will be called vsock. If unsure, say N.
/Linux-v4.19/drivers/vhost/
Dvsock.c55 struct vhost_vsock *vsock; in __vhost_vsock_get() local
57 list_for_each_entry(vsock, &vhost_vsock_list, list) { in __vhost_vsock_get()
58 u32 other_cid = vsock->guest_cid; in __vhost_vsock_get()
65 return vsock; in __vhost_vsock_get()
74 struct vhost_vsock *vsock; in vhost_vsock_get() local
77 vsock = __vhost_vsock_get(guest_cid); in vhost_vsock_get()
80 return vsock; in vhost_vsock_get()
84 vhost_transport_do_send_pkt(struct vhost_vsock *vsock, in vhost_transport_do_send_pkt() argument
87 struct vhost_virtqueue *tx_vq = &vsock->vqs[VSOCK_VQ_TX]; in vhost_transport_do_send_pkt()
97 vhost_disable_notify(&vsock->dev, vq); in vhost_transport_do_send_pkt()
[all …]
DKconfig23 tristate "vhost virtio-vsock driver"
31 virtio_transport.ko driver loaded to use the virtio-vsock device.
DMakefile9 vhost_vsock-y := vsock.o
/Linux-v4.19/include/trace/events/
Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/Linux-v4.19/drivers/net/
DKconfig361 tristate "Virtual vsock monitoring device"
364 This option enables a monitoring net device for vsock sockets. It is
365 mostly intended for developers or support to debug vsock issues. If
/Linux-v4.19/Documentation/admin-guide/
Ddevices.txt377 241 = /dev/vhost-vsock Host kernel driver for virtio vsock
/Linux-v4.19/
DMAINTAINERS15544 F: drivers/vhost/vsock.c
15545 F: drivers/vhost/vsock.h
15546 F: tools/testing/vsock/