Home
last modified time | relevance | path

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

/linux/net/vmw_vsock/
H A Dvirtio_transport.c84 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 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 Daf_vsock.c606 else if (sock_net(sk)->vsock.g2h_fallback && in vsock_assign_transport()
809 if (!net->vsock.port) in __vsock_bind_connectible()
810 net->vsock.port = get_random_u32_above(LAST_RESERVED_PORT); in __vsock_bind_connectible()
819 if (net->vsock.port == VMADDR_PORT_ANY || in __vsock_bind_connectible()
820 net->vsock.port <= LAST_RESERVED_PORT) in __vsock_bind_connectible()
821 net->vsock.port = LAST_RESERVED_PORT + 1; in __vsock_bind_connectible()
823 new_addr.svm_port = net->vsock.port++; in __vsock_bind_connectible()
2845 net = container_of(table->data, struct net, vsock.mode); in vsock_net_mode_string()
2858 net = container_of(table->data, struct net, vsock.child_ns_mode); in vsock_net_child_mode_string()
2883 .data = &init_net.vsock.mode,
[all …]
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 in vmci_transport_allow_dgram()
[all...]
H A DKconfig17 will be called vsock. If unsure, say N.
/linux/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/tools/testing/selftests/net/
H A Dgetsockopt_iter.c181 FIXTURE(vsock) in FIXTURE() argument
186 FIXTURE_SETUP(vsock) in FIXTURE_SETUP() argument
193 FIXTURE_TEARDOWN(vsock) in FIXTURE_TEARDOWN() argument
199 TEST_F(vsock, buffer_size_exact) in TEST_F() argument
213 TEST_F(vsock, buffer_size_oversize_clamped) in TEST_F() argument
226 TEST_F(vsock, buffer_size_undersize) in TEST_F() argument
240 TEST_F(vsock, bad_level) in TEST_F() argument
254 TEST_F(vsock, bad_optname) in TEST_F() argument
272 TEST_F(vsock, connect_timeout_new_exact) in TEST_F() argument
285 TEST_F(vsock, connect_timeout_new_oversize_clamped) in TEST_F() argument
[all …]
/linux/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/include/net/
H A Daf_vsock.h278 return READ_ONCE(net->vsock.mode); in vsock_net_mode()
292 if (try_cmpxchg(&net->vsock.child_ns_mode_locked, in vsock_net_set_child_mode()
294 WRITE_ONCE(net->vsock.child_ns_mode, mode); in vsock_net_set_child_mode()
303 return READ_ONCE(net->vsock.child_ns_mode); in vsock_net_child_mode()
H A Dnet_namespace.h205 struct netns_vsock vsock; member
/linux/tools/testing/selftests/vsock/
H A DMakefile5 VSOCK_TEST_DIR := $(TOOLSDIR)/testing/vsock
H A Dvmtest.sh88 "Check /proc/sys/net/vsock/ns_mode strings on the host."
91 "Check /proc/sys/net/vsock/ns_mode is read-only and child_ns_mode is writable."
124 "Run socat to test a loopback vsock in a global ns fails to connect to a vsock in a local ns."
127 "Run socat to test a loopback vsock in a local ns fails to connect to a vsock in a global ns."
130 "Run socat to test a loopback vsock in a local ns fails to connect to a vsock in another local ns."
133 "Run socat to test a loopback vsock in a global ns successfully connects to a vsock i
[all...]
/linux/drivers/vhost/
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/Documentation/translations/zh_CN/networking/
H A Dmsg_zerocopy.rst223 对于 VSOCK 类型套接字的示例可以在 tools/testing/vsock/vsock_test_zerocopy.c 中找到。
/linux/include/trace/events/
H A Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/linux/Documentation/networking/
H A Dmsg_zerocopy.rst265 tools/testing/vsock/vsock_test_zerocopy.c.
/linux/
H A DMAINTAINERS28720 F: drivers/vhost/vsock.c
28722 F: include/net/netns/vsock.h
29023 F: tools/testing/selftests/vsock/
29024 F: tools/testing/vsock/