Home
last modified time | relevance | path

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

/Linux-v6.6/net/vmw_vsock/
Dvirtio_transport.c70 struct virtio_vsock *vsock; in virtio_transport_get_local_cid() local
74 vsock = rcu_dereference(the_virtio_vsock); in virtio_transport_get_local_cid()
75 if (!vsock) { in virtio_transport_get_local_cid()
80 ret = vsock->guest_cid; in virtio_transport_get_local_cid()
89 struct virtio_vsock *vsock = in virtio_transport_send_pkt_work() local
95 mutex_lock(&vsock->tx_lock); in virtio_transport_send_pkt_work()
97 if (!vsock->tx_run) in virtio_transport_send_pkt_work()
100 vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_pkt_work()
108 skb = virtio_vsock_skb_dequeue(&vsock->send_pkt_queue); in virtio_transport_send_pkt_work()
127 virtio_vsock_skb_queue_head(&vsock->send_pkt_queue, skb); in virtio_transport_send_pkt_work()
[all …]
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()
107 struct vsock_loopback *vsock = in vsock_loopback_work() local
114 spin_lock_bh(&vsock->pkt_queue.lock); in vsock_loopback_work()
115 skb_queue_splice_init(&vsock->pkt_queue, &pkts); in vsock_loopback_work()
116 spin_unlock_bh(&vsock->pkt_queue.lock); in vsock_loopback_work()
126 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_init() local
[all …]
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
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()
DKconfig17 will be called vsock. If unsure, say N.
/Linux-v6.6/drivers/vhost/
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()
119 skb = virtio_vsock_skb_dequeue(&vsock->send_pkt_queue); in vhost_transport_do_send_pkt()
122 vhost_enable_notify(&vsock->dev, vq); in vhost_transport_do_send_pkt()
129 virtio_vsock_skb_queue_head(&vsock->send_pkt_queue, skb); in vhost_transport_do_send_pkt()
[all …]
DMakefile9 vhost_vsock-y := vsock.o
DKconfig56 tristate "vhost virtio-vsock driver"
64 virtio_transport.ko driver loaded to use the virtio-vsock device.
/Linux-v6.6/Documentation/translations/zh_CN/virt/
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-v6.6/Documentation/virt/
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-v6.6/include/trace/events/
Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/Linux-v6.6/tools/testing/vsock/
DREADME41 'vsock_perf' is a simple tool to measure vsock performance. It works in
/Linux-v6.6/drivers/net/
DKconfig462 tristate "Virtual vsock monitoring device"
465 This option enables a monitoring net device for vsock sockets. It is
466 mostly intended for developers or support to debug vsock issues. If
/Linux-v6.6/Documentation/arch/x86/
Dtdx.rst253 whatever communication channel available (i.e. vsock or TCP/IP) to
/Linux-v6.6/Documentation/admin-guide/
Ddevices.txt377 241 = /dev/vhost-vsock Host kernel driver for virtio vsock
/Linux-v6.6/
DMAINTAINERS22740 F: drivers/vhost/vsock.c
22980 F: tools/testing/vsock/