Home
last modified time | relevance | path

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

/Linux-v5.4/net/vmw_vsock/
Dvirtio_transport.c73 struct virtio_vsock *vsock; in virtio_transport_get_local_cid() local
77 vsock = rcu_dereference(the_virtio_vsock); in virtio_transport_get_local_cid()
78 if (!vsock) { in virtio_transport_get_local_cid()
83 ret = vsock->guest_cid; in virtio_transport_get_local_cid()
91 struct virtio_vsock *vsock = in virtio_transport_loopback_work() local
95 spin_lock_bh(&vsock->loopback_list_lock); in virtio_transport_loopback_work()
96 list_splice_init(&vsock->loopback_list, &pkts); in virtio_transport_loopback_work()
97 spin_unlock_bh(&vsock->loopback_list_lock); in virtio_transport_loopback_work()
99 mutex_lock(&vsock->rx_lock); in virtio_transport_loopback_work()
101 if (!vsock->rx_run) in virtio_transport_loopback_work()
[all …]
DMakefile2 obj-$(CONFIG_VSOCKETS) += vsock.o
9 vsock-y += af_vsock.o af_vsock_tap.o vsock_addr.o
Dvmci_transport.c523 static bool vmci_transport_is_trusted(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_is_trusted() argument
525 return vsock->trusted || in vmci_transport_is_trusted()
526 vmci_is_context_owner(peer_cid, vsock->owner->uid); in vmci_transport_is_trusted()
533 static bool vmci_transport_allow_dgram(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_allow_dgram() argument
538 if (vsock->cached_peer != peer_cid) { in vmci_transport_allow_dgram()
539 vsock->cached_peer = peer_cid; in vmci_transport_allow_dgram()
540 if (!vmci_transport_is_trusted(vsock, peer_cid) && in vmci_transport_allow_dgram()
543 vsock->cached_peer_allow_dgram = false; in vmci_transport_allow_dgram()
545 vsock->cached_peer_allow_dgram = true; in vmci_transport_allow_dgram()
549 return vsock->cached_peer_allow_dgram; in vmci_transport_allow_dgram()
DKconfig17 will be called vsock. If unsure, say N.
/Linux-v5.4/drivers/vhost/
Dvsock.c66 struct vhost_vsock *vsock; in vhost_vsock_get() local
68 hash_for_each_possible_rcu(vhost_vsock_hash, vsock, hash, guest_cid) { in vhost_vsock_get()
69 u32 other_cid = vsock->guest_cid; in vhost_vsock_get()
76 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()
98 vhost_disable_notify(&vsock->dev, vq); in vhost_transport_do_send_pkt()
108 spin_lock_bh(&vsock->send_pkt_list_lock); in vhost_transport_do_send_pkt()
109 if (list_empty(&vsock->send_pkt_list)) { in vhost_transport_do_send_pkt()
110 spin_unlock_bh(&vsock->send_pkt_list_lock); in vhost_transport_do_send_pkt()
[all …]
DKconfig24 tristate "vhost virtio-vsock driver"
32 virtio_transport.ko driver loaded to use the virtio-vsock device.
DMakefile9 vhost_vsock-y := vsock.o
/Linux-v5.4/include/trace/events/
Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/Linux-v5.4/drivers/net/
DKconfig365 tristate "Virtual vsock monitoring device"
368 This option enables a monitoring net device for vsock sockets. It is
369 mostly intended for developers or support to debug vsock issues. If
/Linux-v5.4/Documentation/admin-guide/
Ddevices.txt377 241 = /dev/vhost-vsock Host kernel driver for virtio vsock
/Linux-v5.4/
DMAINTAINERS17232 F: drivers/vhost/vsock.c
17233 F: tools/testing/vsock/