Home
last modified time | relevance | path

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

/Linux-v5.10/net/vmw_vsock/
Dvirtio_transport.c69 struct virtio_vsock *vsock; in virtio_transport_get_local_cid() local
73 vsock = rcu_dereference(the_virtio_vsock); in virtio_transport_get_local_cid()
74 if (!vsock) { in virtio_transport_get_local_cid()
79 ret = vsock->guest_cid; in virtio_transport_get_local_cid()
88 struct virtio_vsock *vsock = in virtio_transport_send_pkt_work() local
94 mutex_lock(&vsock->tx_lock); in virtio_transport_send_pkt_work()
96 if (!vsock->tx_run) in virtio_transport_send_pkt_work()
99 vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_pkt_work()
107 spin_lock_bh(&vsock->send_pkt_list_lock); in virtio_transport_send_pkt_work()
108 if (list_empty(&vsock->send_pkt_list)) { in virtio_transport_send_pkt_work()
[all …]
Dvsock_loopback.c32 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_send_pkt() local
35 spin_lock_bh(&vsock->pkt_list_lock); in vsock_loopback_send_pkt()
36 list_add_tail(&pkt->list, &vsock->pkt_list); in vsock_loopback_send_pkt()
37 spin_unlock_bh(&vsock->pkt_list_lock); in vsock_loopback_send_pkt()
39 queue_work(vsock->workqueue, &vsock->pkt_work); in vsock_loopback_send_pkt()
46 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_cancel_pkt() local
50 spin_lock_bh(&vsock->pkt_list_lock); in vsock_loopback_cancel_pkt()
51 list_for_each_entry_safe(pkt, n, &vsock->pkt_list, list) { in vsock_loopback_cancel_pkt()
56 spin_unlock_bh(&vsock->pkt_list_lock); in vsock_loopback_cancel_pkt()
110 struct vsock_loopback *vsock = in vsock_loopback_work() local
[all …]
DMakefile2 obj-$(CONFIG_VSOCKETS) += vsock.o
10 vsock-y += af_vsock.o af_vsock_tap.o vsock_addr.o
Dvmci_transport.c515 static bool vmci_transport_is_trusted(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_is_trusted() argument
517 return vsock->trusted || in vmci_transport_is_trusted()
518 vmci_is_context_owner(peer_cid, vsock->owner->uid); in vmci_transport_is_trusted()
525 static bool vmci_transport_allow_dgram(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_allow_dgram() argument
530 if (vsock->cached_peer != peer_cid) { in vmci_transport_allow_dgram()
531 vsock->cached_peer = peer_cid; in vmci_transport_allow_dgram()
532 if (!vmci_transport_is_trusted(vsock, peer_cid) && in vmci_transport_allow_dgram()
535 vsock->cached_peer_allow_dgram = false; in vmci_transport_allow_dgram()
537 vsock->cached_peer_allow_dgram = true; in vmci_transport_allow_dgram()
541 return vsock->cached_peer_allow_dgram; in vmci_transport_allow_dgram()
DKconfig17 will be called vsock. If unsure, say N.
/Linux-v5.10/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 …]
DMakefile9 vhost_vsock-y := vsock.o
DKconfig51 tristate "vhost virtio-vsock driver"
59 virtio_transport.ko driver loaded to use the virtio-vsock device.
/Linux-v5.10/Documentation/virt/
Dne_overview.rst55 using virtio-vsock [5]. The primary VM has virtio-pci vsock emulated device,
56 while the enclave VM has a virtio-mmio vsock emulated device. The vsock device
58 APIC and IOAPIC - to get interrupts from virtio-vsock device. The virtio-mmio
80 init process in the enclave connects to the vsock CID of the primary VM and a
94 [5] https://man7.org/linux/man-pages/man7/vsock.7.html
/Linux-v5.10/include/trace/events/
Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/Linux-v5.10/drivers/net/
DKconfig422 tristate "Virtual vsock monitoring device"
425 This option enables a monitoring net device for vsock sockets. It is
426 mostly intended for developers or support to debug vsock issues. If
/Linux-v5.10/Documentation/admin-guide/
Ddevices.txt377 241 = /dev/vhost-vsock Host kernel driver for virtio vsock
/Linux-v5.10/
DMAINTAINERS18528 F: drivers/vhost/vsock.c
18538 F: tools/testing/vsock/