Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/net/vmw_vsock/
H A 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 …]
H A 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 …]
H A DMakefile2 obj-$(CONFIG_VSOCKETS) += vsock.o
10 vsock-y += af_vsock.o af_vsock_tap.o vsock_addr.o
H A 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()
H A DKconfig17 will be called vsock. If unsure, say N.
/OK3568_Linux_fs/kernel/drivers/vhost/
H A 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 …]
H A DKconfig51 tristate "vhost virtio-vsock driver"
59 virtio_transport.ko driver loaded to use the virtio-vsock device.
H A DMakefile9 vhost_vsock-y := vsock.o
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/
H A D0001-vhost-vsock-detach-the-virqueue-element-in-case-of-e.patch8 Subject: [PATCH 1/2] vhost-vsock: detach the virqueue element in case of error
14 Fixes: fc0b9b0e1c ("vhost-vsock: add virtio sockets device")
24 hw/virtio/vhost-vsock-common.c | 10 +++++++---
27 diff --git a/hw/virtio/vhost-vsock-common.c b/hw/virtio/vhost-vsock-common.c
29 --- a/hw/virtio/vhost-vsock-common.c
30 +++ b/hw/virtio/vhost-vsock-common.c
33 error_report("invalid vhost-vsock event virtqueue element with "
41 error_report("vhost-vsock event virtqueue element is too short");
/OK3568_Linux_fs/kernel/Documentation/virt/
H A 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
/OK3568_Linux_fs/kernel/include/trace/events/
H A Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/xrdp/
H A Dxrdp_0.9.18.bb41 --enable-pixman --enable-painter --enable-vsock \
/OK3568_Linux_fs/kernel/drivers/net/
H A 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
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/
H A Dqemu.inc32 file://0001-vhost-vsock-detach-the-virqueue-element-in-case-of-e.patch \
/OK3568_Linux_fs/kernel/Documentation/admin-guide/
H A Ddevices.txt377 241 = /dev/vhost-vsock Host kernel driver for virtio vsock
/OK3568_Linux_fs/kernel/
H A DMAINTAINERS18568 F: drivers/vhost/vsock.c
18578 F: tools/testing/vsock/