Searched refs:vsock (Results 1 – 14 of 14) sorted by relevance
/linux-6.1.9/net/vmw_vsock/ |
D | virtio_transport.c | 71 struct virtio_vsock *vsock; in virtio_transport_get_local_cid() local 75 vsock = rcu_dereference(the_virtio_vsock); in virtio_transport_get_local_cid() 76 if (!vsock) { in virtio_transport_get_local_cid() 81 ret = vsock->guest_cid; in virtio_transport_get_local_cid() 90 struct virtio_vsock *vsock = in virtio_transport_send_pkt_work() local 96 mutex_lock(&vsock->tx_lock); in virtio_transport_send_pkt_work() 98 if (!vsock->tx_run) in virtio_transport_send_pkt_work() 101 vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_pkt_work() 109 spin_lock_bh(&vsock->send_pkt_list_lock); in virtio_transport_send_pkt_work() 110 if (list_empty(&vsock->send_pkt_list)) { in virtio_transport_send_pkt_work() [all …]
|
D | vsock_loopback.c | 32 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() 122 struct vsock_loopback *vsock = in vsock_loopback_work() local [all …]
|
D | Makefile | 2 obj-$(CONFIG_VSOCKETS) += vsock.o 10 vsock-y += af_vsock.o af_vsock_tap.o vsock_addr.o
|
D | vmci_transport.c | 517 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()
|
D | Kconfig | 17 will be called vsock. If unsure, say N.
|
/linux-6.1.9/drivers/vhost/ |
D | vsock.c | 73 struct vhost_vsock *vsock; in vhost_vsock_get() local 75 hash_for_each_possible_rcu(vhost_vsock_hash, vsock, hash, guest_cid) { in vhost_vsock_get() 76 u32 other_cid = vsock->guest_cid; in vhost_vsock_get() 83 return vsock; in vhost_vsock_get() 91 vhost_transport_do_send_pkt(struct vhost_vsock *vsock, in vhost_transport_do_send_pkt() argument 94 struct vhost_virtqueue *tx_vq = &vsock->vqs[VSOCK_VQ_TX]; in vhost_transport_do_send_pkt() 108 vhost_disable_notify(&vsock->dev, vq); in vhost_transport_do_send_pkt() 119 spin_lock_bh(&vsock->send_pkt_list_lock); in vhost_transport_do_send_pkt() 120 if (list_empty(&vsock->send_pkt_list)) { in vhost_transport_do_send_pkt() 121 spin_unlock_bh(&vsock->send_pkt_list_lock); in vhost_transport_do_send_pkt() [all …]
|
D | Makefile | 9 vhost_vsock-y := vsock.o
|
D | Kconfig | 51 tristate "vhost virtio-vsock driver" 59 virtio_transport.ko driver loaded to use the virtio-vsock device.
|
/linux-6.1.9/Documentation/translations/zh_CN/virt/ |
D | ne_overview.rst | 57 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.1.9/Documentation/virt/ |
D | ne_overview.rst | 58 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.1.9/include/trace/events/ |
D | vsock_virtio_transport_common.h | 3 #define TRACE_SYSTEM vsock
|
/linux-6.1.9/drivers/net/ |
D | Kconfig | 440 tristate "Virtual vsock monitoring device" 443 This option enables a monitoring net device for vsock sockets. It is 444 mostly intended for developers or support to debug vsock issues. If
|
/linux-6.1.9/Documentation/admin-guide/ |
D | devices.txt | 377 241 = /dev/vhost-vsock Host kernel driver for virtio vsock
|
/linux-6.1.9/ |
D | MAINTAINERS | 21712 F: drivers/vhost/vsock.c 21946 F: tools/testing/vsock/
|