| /linux/net/vmw_vsock/ |
| H A D | virtio_transport.c | 3 * virtio transport for vsock 10 * early virtio-vsock proof-of-concept bits. 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() 100 /* Caller need to hold vsock->tx_lock on vq */ 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 217 virtio_transport_send_skb_fast_path(struct virtio_vsock * vsock,struct sk_buff * skb) virtio_transport_send_skb_fast_path() argument 240 struct virtio_vsock *vsock; virtio_transport_send_pkt() local 282 struct virtio_vsock *vsock; virtio_transport_cancel_pkt() local 311 virtio_vsock_rx_fill(struct virtio_vsock * vsock) virtio_vsock_rx_fill() argument 344 struct virtio_vsock *vsock = virtio_transport_tx_work() local 374 virtio_transport_more_replies(struct virtio_vsock * vsock) virtio_transport_more_replies() argument 386 virtio_vsock_event_fill_one(struct virtio_vsock * vsock,struct virtio_vsock_event * event) virtio_vsock_event_fill_one() argument 400 virtio_vsock_event_fill(struct virtio_vsock * vsock) virtio_vsock_event_fill() argument 425 virtio_vsock_update_guest_cid(struct virtio_vsock * vsock) virtio_vsock_update_guest_cid() argument 436 virtio_vsock_event_handle(struct virtio_vsock * vsock,struct virtio_vsock_event * event) virtio_vsock_event_handle() argument 450 struct virtio_vsock *vsock = virtio_transport_event_work() local 481 struct virtio_vsock *vsock = vq->vdev->priv; virtio_vsock_event_done() local 490 struct virtio_vsock *vsock = vq->vdev->priv; virtio_vsock_tx_done() local 499 struct virtio_vsock *vsock = vq->vdev->priv; virtio_vsock_rx_done() local 508 struct virtio_vsock *vsock; virtio_transport_can_msgzerocopy() local 608 struct virtio_vsock *vsock; virtio_transport_seqpacket_allow() local 626 struct virtio_vsock *vsock = virtio_transport_rx_work() local 690 virtio_vsock_vqs_init(struct virtio_vsock * vsock) virtio_vsock_vqs_init() argument 718 virtio_vsock_vqs_start(struct virtio_vsock * vsock) virtio_vsock_vqs_start() argument 746 virtio_vsock_vqs_del(struct virtio_vsock * vsock) virtio_vsock_vqs_del() argument 793 struct virtio_vsock *vsock = NULL; virtio_vsock_probe() local 853 struct virtio_vsock *vsock = vdev->priv; virtio_vsock_remove() local 879 struct virtio_vsock *vsock = vdev->priv; virtio_vsock_freeze() local 895 struct virtio_vsock *vsock = vdev->priv; virtio_vsock_restore() local [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 | 595 else if (sock_net(sk)->vsock.g2h_fallback && in vsock_assign_transport() 801 if (!net->vsock.port) in __vsock_bind_connectible() 802 net->vsock.port = get_random_u32_above(LAST_RESERVED_PORT); in __vsock_bind_connectible() 811 if (net->vsock.port == VMADDR_PORT_ANY || in __vsock_bind_connectible() 812 net->vsock.port <= LAST_RESERVED_PORT) in __vsock_bind_connectible() 813 net->vsock.port = LAST_RESERVED_PORT + 1; in __vsock_bind_connectible() 815 new_addr.svm_port = net->vsock.port++; in __vsock_bind_connectible() 2858 net = container_of(table->data, struct net, vsock.mode); in vsock_net_mode_string() 2871 net = container_of(table->data, struct net, vsock.child_ns_mode); in vsock_net_child_mode_string() 2896 .data = &init_net.vsock.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/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 | 280 return READ_ONCE(net->vsock.mode); in vsock_net_mode() 294 if (try_cmpxchg(&net->vsock.child_ns_mode_locked, in vsock_net_set_child_mode() 296 WRITE_ONCE(net->vsock.child_ns_mode, mode); in vsock_net_set_child_mode() 305 return READ_ONCE(net->vsock.child_ns_mode); in vsock_net_child_mode()
|
| H A D | net_namespace.h | 202 struct netns_vsock vsock; member
|
| /linux/tools/testing/selftests/vsock/ |
| H A D | vmtest.sh | 217 tee /proc/sys/net/vsock/child_ns_mode &>/dev/null 220 tee /proc/sys/net/vsock/child_ns_mode &>/dev/null 534 vsock) 535 if ss --listening --vsock --numeric | grep -q ":${port} "; then 735 ip netns exec "${ns}" cat /proc/sys/net/vsock/ns_mode 2>/dev/null 1282 if echo "${mode}" 2>/dev/null > /proc/sys/net/vsock/ns_mode; then 1289 tee /proc/sys/net/vsock/child_ns_mode &>/dev/null; then
|
| H A D | Makefile | 5 VSOCK_TEST_DIR := $(TOOLSDIR)/testing/vsock
|
| /linux/drivers/vhost/ |
| 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/networking/ |
| H A D | msg_zerocopy.rst | 223 对于 VSOCK 类型套接字的示例可以在 tools/testing/vsock/vsock_test_zerocopy.c 中找到。
|
| /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 613 vhost-vsock) does not serve, or if no H2G transport is loaded at all, the 614 connection is routed via the G2H transport (e.g. virtio-vsock) instead. This 615 allows a host running both nested VMs (via vhost-vsock) and sibling VMs 625 CID which is not implemented by the H2G transport will create host vsock
|
| /linux/include/trace/events/ |
| H A D | vsock_virtio_transport_common.h | 3 #define TRACE_SYSTEM vsock
|
| /linux/drivers/net/ |
| H A D | Kconfig | 482 tristate "Virtual vsock monitoring device" 485 This option enables a monitoring net device for vsock sockets. It is 486 mostly intended for developers or support to debug vsock issues. If
|
| /linux/Documentation/networking/ |
| H A D | msg_zerocopy.rst | 265 tools/testing/vsock/vsock_test_zerocopy.c.
|
| /linux/ |
| H A D | MAINTAINERS | 28171 F: drivers/vhost/vsock.c 28173 F: include/net/netns/vsock.h 28460 F: tools/testing/selftests/vsock/ 28461 F: tools/testing/vsock/
|