| /linux/net/vmw_vsock/ |
| H A D | virtio_transport.c | 84 struct virtio_vsock *vsock; in virtio_transport_get_local_cid() local 88 vsock = rcu_dereference(the_virtio_vsock); in virtio_transport_get_local_cid() 89 if (!vsock) { in virtio_transport_get_local_cid() 94 ret = vsock->guest_cid; in virtio_transport_get_local_cid() 102 struct virtio_vsock *vsock, gfp_t gfp) in virtio_transport_send_skb() argument 107 sgs = vsock->out_sgs; in virtio_transport_send_skb() 160 struct virtio_vsock *vsock = in virtio_transport_send_pkt_work() local 166 mutex_lock(&vsock->tx_lock); in virtio_transport_send_pkt_work() 168 if (!vsock->tx_run) in virtio_transport_send_pkt_work() 171 vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_pkt_work() [all …]
|
| H A D | Makefile | 2 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 D | af_vsock.c | 787 if (!net->vsock.port) in __vsock_bind_connectible() 788 net->vsock.port = get_random_u32_above(LAST_RESERVED_PORT); in __vsock_bind_connectible() 797 if (net->vsock.port == VMADDR_PORT_ANY || in __vsock_bind_connectible() 798 net->vsock.port <= LAST_RESERVED_PORT) in __vsock_bind_connectible() 799 net->vsock.port = LAST_RESERVED_PORT + 1; in __vsock_bind_connectible() 801 new_addr.svm_port = net->vsock.port++; in __vsock_bind_connectible() 2832 net = container_of(table->data, struct net, vsock.mode); in vsock_net_mode_string() 2845 net = container_of(table->data, struct net, vsock.child_ns_mode); in vsock_net_child_mode_string() 2870 .data = &init_net.vsock.mode, 2877 .data = &init_net.vsock.child_ns_mode, [all …]
|
| H A 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()
|
| H A D | Kconfig | 17 will be called vsock. If unsure, say N.
|
| /linux/drivers/vhost/ |
| H A D | vsock.c | 76 struct vhost_vsock *vsock; in vhost_vsock_get() local 78 hash_for_each_possible_rcu(vhost_vsock_hash, vsock, hash, guest_cid, in vhost_vsock_get() 80 u32 other_cid = vsock->guest_cid; in vhost_vsock_get() 87 vsock_net_check_mode(net, vsock->net)) in vhost_vsock_get() 88 return vsock; in vhost_vsock_get() 95 vhost_transport_do_send_pkt(struct vhost_vsock *vsock, in vhost_transport_do_send_pkt() argument 98 struct vhost_virtqueue *tx_vq = &vsock->vqs[VSOCK_VQ_TX]; in vhost_transport_do_send_pkt() 112 vhost_disable_notify(&vsock->dev, vq); in vhost_transport_do_send_pkt() 125 skb = virtio_vsock_skb_dequeue(&vsock->send_pkt_queue); in vhost_transport_do_send_pkt() 128 vhost_enable_notify(&vsock->dev, vq); in vhost_transport_do_send_pkt() [all …]
|
| H A D | Makefile | 9 vhost_vsock-y := vsock.o
|
| H A D | Kconfig | 57 tristate "vhost virtio-vsock driver" 65 virtio_transport.ko driver loaded to use the virtio-vsock device.
|
| /linux/Documentation/translations/zh_CN/virt/ |
| H A 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/Documentation/virt/ |
| H A 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/include/net/ |
| H A D | af_vsock.h | 271 return READ_ONCE(net->vsock.mode); in vsock_net_mode() 285 if (try_cmpxchg(&net->vsock.child_ns_mode_locked, in vsock_net_set_child_mode() 287 WRITE_ONCE(net->vsock.child_ns_mode, mode); in vsock_net_set_child_mode() 296 return READ_ONCE(net->vsock.child_ns_mode); in vsock_net_child_mode()
|
| /linux/tools/testing/selftests/vsock/ |
| H A D | vmtest.sh | 215 tee /proc/sys/net/vsock/child_ns_mode &>/dev/null 218 tee /proc/sys/net/vsock/child_ns_mode &>/dev/null 498 vsock) 499 if ss --listening --vsock --numeric | grep -q ":${port} "; then 699 ip netns exec "${ns}" cat /proc/sys/net/vsock/ns_mode 2>/dev/null 1246 if echo "${mode}" 2>/dev/null > /proc/sys/net/vsock/ns_mode; then 1253 tee /proc/sys/net/vsock/child_ns_mode &>/dev/null; then
|
| H A D | Makefile | 5 VSOCK_TEST_DIR := $(TOOLSDIR)/testing/vsock
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | msg_zerocopy.rst | 223 对于 VSOCK 类型套接字的示例可以在 tools/testing/vsock/vsock_test_zerocopy.c 中找到。
|
| /linux/include/trace/events/ |
| H A D | vsock_virtio_transport_common.h | 3 #define TRACE_SYSTEM vsock
|
| /linux/drivers/net/ |
| H A D | Kconfig | 489 tristate "Virtual vsock monitoring device" 492 This option enables a monitoring net device for vsock sockets. It is 493 mostly intended for developers or support to debug vsock issues. If
|
| /linux/Documentation/admin-guide/sysctl/ |
| H A D | net.rst | 43 ipv4 IP version 4 vsock VSOCK sockets 555 6. /proc/sys/net/vsock - VSOCK sockets
|
| /linux/Documentation/networking/ |
| H A D | msg_zerocopy.rst | 265 tools/testing/vsock/vsock_test_zerocopy.c.
|
| /linux/ |
| H A D | MAINTAINERS | 27875 F: drivers/vhost/vsock.c 27877 F: include/net/netns/vsock.h 28164 F: tools/testing/selftests/vsock/ 28165 F: tools/testing/vsock/
|