Home
last modified time | relevance | path

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

/linux-6.15/net/vmw_vsock/
H A Dvirtio_transport.c86 if (!vsock) { in virtio_transport_get_local_cid()
244 if (!vsock) { in virtio_transport_send_pkt()
334 if (vsock->rx_buf_nr > vsock->rx_buf_max_nr) in virtio_vsock_rx_fill()
335 vsock->rx_buf_max_nr = vsock->rx_buf_nr; in virtio_vsock_rx_fill()
480 if (!vsock) in virtio_vsock_event_done()
489 if (!vsock) in virtio_vsock_tx_done()
498 if (!vsock) in virtio_vsock_rx_done()
604 if (vsock) in virtio_transport_seqpacket_allow()
658 if (vsock->rx_buf_nr < vsock->rx_buf_max_nr / 2) in virtio_transport_rx_work()
781 vsock = kzalloc(sizeof(*vsock), GFP_KERNEL); in virtio_vsock_probe()
[all …]
H A Dvsock_loopback.c31 struct vsock_loopback *vsock = &the_vsock_loopback; in vsock_loopback_send_pkt() local
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
116 struct vsock_loopback *vsock = in vsock_loopback_work() local
123 spin_lock_bh(&vsock->pkt_queue.lock); in vsock_loopback_work()
125 spin_unlock_bh(&vsock->pkt_queue.lock); in vsock_loopback_work()
143 if (!vsock->workqueue) in vsock_loopback_init()
146 skb_queue_head_init(&vsock->pkt_queue); in vsock_loopback_init()
157 destroy_workqueue(vsock->workqueue); in vsock_loopback_init()
167 flush_work(&vsock->pkt_work); in vsock_loopback_exit()
[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-6.15/drivers/vhost/
H A Dvsock.c82 return vsock; in vhost_vsock_get()
282 if (!vsock) { in vhost_transport_send_pkt()
292 vhost_vq_work_queue(&vsock->vqs[VSOCK_VQ_RX], &vsock->send_pkt_work); in vhost_transport_send_pkt()
309 if (!vsock) in vhost_transport_cancel_pkt()
470 if (vsock) in vhost_transport_seqpacket_allow()
600 vhost_vq_work_queue(&vsock->vqs[VSOCK_VQ_RX], &vsock->send_pkt_work); in vhost_vsock_start()
649 kvfree(vsock); in vhost_vsock_free()
661 vsock = kvmalloc(sizeof(*vsock), GFP_KERNEL | __GFP_RETRY_MAYFAIL); in vhost_vsock_dev_open()
662 if (!vsock) in vhost_vsock_dev_open()
681 vhost_dev_init(&vsock->dev, vqs, ARRAY_SIZE(vsock->vqs), in vhost_vsock_dev_open()
[all …]
H A DMakefile9 vhost_vsock-y := vsock.o
H A DKconfig57 tristate "vhost virtio-vsock driver"
65 virtio_transport.ko driver loaded to use the virtio-vsock device.
/linux-6.15/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-6.15/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-6.15/include/trace/events/
H A Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/linux-6.15/tools/testing/vsock/
H A DREADME56 'vsock_perf' is a simple tool to measure vsock performance. It works in
/linux-6.15/drivers/net/
H A DKconfig485 tristate "Virtual vsock monitoring device"
488 This option enables a monitoring net device for vsock sockets. It is
489 mostly intended for developers or support to debug vsock issues. If
/linux-6.15/Documentation/networking/
H A Dmsg_zerocopy.rst265 tools/testing/vsock/vsock_test_zerocopy.c.
/linux-6.15/Documentation/arch/x86/
H A Dtdx.rst438 whatever communication channel available (i.e. vsock or TCP/IP) to
/linux-6.15/Documentation/admin-guide/
H A Ddevices.txt377 241 = /dev/vhost-vsock Host kernel driver for virtio vsock
/linux-6.15/
H A DMAINTAINERS25712 F: drivers/vhost/vsock.c
25969 F: tools/testing/vsock/