Home
last modified time | relevance | path

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

/linux/net/vmw_vsock/
H A Dvirtio_transport.c81 struct virtio_vsock *vsock; in virtio_transport_get_local_cid() local
85 vsock = rcu_dereference(the_virtio_vsock); in virtio_transport_get_local_cid()
86 if (!vsock) { in virtio_transport_get_local_cid()
91 ret = vsock->guest_cid; in virtio_transport_get_local_cid()
99 struct virtio_vsock *vsock, gfp_t gfp) in virtio_transport_send_skb() argument
104 sgs = vsock->out_sgs; in virtio_transport_send_skb()
157 struct virtio_vsock *vsock = in virtio_transport_send_pkt_work() local
163 mutex_lock(&vsock->tx_lock); in virtio_transport_send_pkt_work()
165 if (!vsock->tx_run) in virtio_transport_send_pkt_work()
168 vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_pkt_work()
[all …]
H A Dvsock_loopback.c31 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_send_pkt() local
34 virtio_vsock_skb_queue_tail(&vsock->pkt_queue, skb); in vsock_loopback_send_pkt()
35 queue_work(vsock->workqueue, &vsock->pkt_work); in vsock_loopback_send_pkt()
42 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_cancel_pkt() local
44 virtio_transport_purge_skbs(vsk, &vsock->pkt_queue); in vsock_loopback_cancel_pkt()
116 struct vsock_loopback *vsock = in vsock_loopback_work() local
123 spin_lock_bh(&vsock->pkt_queue.lock); in vsock_loopback_work()
124 skb_queue_splice_init(&vsock->pkt_queue, &pkts); in vsock_loopback_work()
125 spin_unlock_bh(&vsock->pkt_queue.lock); in vsock_loopback_work()
139 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_init() local
[all …]
H A DMakefile2 obj-$(CONFIG_VSOCKETS) += vsock.o
10 vsock-y += af_vsock.o af_vsock_tap.o vsock_addr.o
11 vsock-$(CONFIG_BPF_SYSCALL) += vsock_bpf.o
H A Dvmci_transport.c517 static bool vmci_transport_is_trusted(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_is_trusted() argument
519 return vsock->trusted || in vmci_transport_is_trusted()
520 vmci_is_context_owner(peer_cid, vsock->owner->uid); in vmci_transport_is_trusted()
527 static bool vmci_transport_allow_dgram(struct vsock_sock *vsock, u32 peer_cid) in vmci_transport_allow_dgram() argument
532 if (vsock->cached_peer != peer_cid) { in vmci_transport_allow_dgram()
533 vsock->cached_peer = peer_cid; in vmci_transport_allow_dgram()
534 if (!vmci_transport_is_trusted(vsock, peer_cid) && in vmci_transport_allow_dgram()
537 vsock->cached_peer_allow_dgram = false; in vmci_transport_allow_dgram()
539 vsock->cached_peer_allow_dgram = true; in vmci_transport_allow_dgram()
543 return vsock->cached_peer_allow_dgram; in vmci_transport_allow_dgram()
H A DKconfig17 will be called vsock. If unsure, say N.
/linux/drivers/vhost/
H A Dvsock.c72 struct vhost_vsock *vsock; in vhost_vsock_get() local
74 hash_for_each_possible_rcu(vhost_vsock_hash, vsock, hash, guest_cid) { in vhost_vsock_get()
75 u32 other_cid = vsock->guest_cid; in vhost_vsock_get()
82 return vsock; in vhost_vsock_get()
90 vhost_transport_do_send_pkt(struct vhost_vsock *vsock, in vhost_transport_do_send_pkt() argument
93 struct vhost_virtqueue *tx_vq = &vsock->vqs[VSOCK_VQ_TX]; in vhost_transport_do_send_pkt()
107 vhost_disable_notify(&vsock->dev, vq); in vhost_transport_do_send_pkt()
120 skb = virtio_vsock_skb_dequeue(&vsock->send_pkt_queue); in vhost_transport_do_send_pkt()
123 vhost_enable_notify(&vsock->dev, vq); in vhost_transport_do_send_pkt()
130 virtio_vsock_skb_queue_head(&vsock->send_pkt_queue, skb); in vhost_transport_do_send_pkt()
[all …]
H A DMakefile9 vhost_vsock-y := vsock.o
H A DKconfig56 tristate "vhost virtio-vsock driver"
64 virtio_transport.ko driver loaded to use the virtio-vsock device.
/linux/Documentation/translations/zh_CN/virt/
H A Dne_overview.rst57 enclave通过本地通信通道与主虚拟机进行通信,使用virtio-vsock[5]。主虚拟机有
58 virtio-pci vsock模拟设备,而飞地虚拟机有virtio-mmio vsock模拟设备。vsock
60 virtio-vsock设备获得中断。virtio-mmio设备被放置在典型的4 GiB以下的内存中。
76 连接到主虚拟机的vsock CID和一个预定义的端口--9000,以发送一个心跳值--0xb7。这
87 [5] https://man7.org/linux/man-pages/man7/vsock.7.html
/linux/Documentation/virt/
H A Dne_overview.rst58 using virtio-vsock [5]. The primary VM has virtio-pci vsock emulated device,
59 while the enclave VM has a virtio-mmio vsock emulated device. The vsock device
61 APIC and IOAPIC - to get interrupts from virtio-vsock device. The virtio-mmio
83 init process in the enclave connects to the vsock CID of the primary VM and a
97 [5] https://man7.org/linux/man-pages/man7/vsock.7.html
/linux/include/trace/events/
H A Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/linux/Documentation/networking/
H A Dmsg_zerocopy.rst265 tools/testing/vsock/vsock_test_zerocopy.c.
/linux/Documentation/arch/x86/
H A Dtdx.rst438 whatever communication channel available (i.e. vsock or TCP/IP) to
/linux/Documentation/admin-guide/
H A Ddevices.txt377 241 = /dev/vhost-vsock Host kernel driver for virtio vsock
/linux/
H A DMAINTAINERS25059 F: drivers/vhost/vsock.c
25316 F: tools/testing/vsock/