Home
last modified time | relevance | path

Searched full:vsock (Results 1 – 25 of 36) sorted by relevance

12

/linux/net/vmw_vsock/
H A Dvirtio_transport.c3 * 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 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.c87 * - Namespaces in vsock support two different modes: "local" and "global".
91 * - /proc/sys/net/vsock/ns_mode (read-only) reports the current namespace's
93 * - /proc/sys/net/vsock/child_ns_mode (write-once) controls what mode future
134 * example, virtio-vsock may not support local mode, but the socket
135 * may still accept a connection from vhost-vsock which does.
167 #include <net/netns/vsock.h>
579 * than VMADDR_CID_HOST, then a vsock channel where all the packets are in vsock_assign_transport()
609 else if (sock_net(sk)->vsock.g2h_fallback && in vsock_assign_transport()
813 if (!net->vsock.port) in __vsock_bind_connectible()
814 net->vsock in __vsock_bind_connectible()
[all...]
H A DKconfig3 # Vsock protocol
17 will be called vsock. If unsure, say N.
H A Dvmci_transport.c80 /* Helper function to convert from a VMCI error code to a VSock error code. */
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 in vmci_transport_allow_dgram()
[all...]
H A Dvirtio_transport_common.c3 * common code for virtio vsock
1604 /* We are under the virtio-vsock's vsock->rx_lock or vhost-vsock's vq->mutex
1654 WARN_ONCE(1, "receiving vsock socket has sk_refcnt == 0\n"); in virtio_transport_recv_pkt()
1816 MODULE_DESCRIPTION("common code for virtio vsock");
H A Ddiag.c3 * vsock sock_diag(7) module
/linux/tools/testing/selftests/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...]
H A DMakefile5 VSOCK_TEST_DIR := $(TOOLSDIR)/testing/vsock
/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/uapi/linux/
H A Dvm_sockets.h133 /* The current default use case for the vsock channel is the following:
134 * local vsock communication between guest and host and nested VMs setup.
135 * In addition to this, implicitly, the vsock packets are forwarded to the host
136 * if no host->guest vsock transport is set.
138 * Set this flag value in the sockaddr_vm corresponding field if the vsock
140 * vsock communication between sibling VMs can be setup.
142 * This way can explicitly distinguish between vsock channels created for
H A Dvirtio_vsock.h41 /* The feature bitmap for virtio vsock */
/linux/Documentation/translations/zh_CN/networking/
H A Dmsg_zerocopy.rst23 MSG_ZEROCOPY 标志用于启用套接字发送调用的免拷贝功能。该功能目前适用于 TCP、UDP 和 VSOCK
156 IPV6_RECVERR。对于 VSOCK 套接字,cmsg_level 为 SOL_VSOCK,cmsg_type 为 VSOCK_RECVERR。
210 对于 VSOCK
223 对于 VSOCK 类型套接字的示例可以在 tools/testing/vsock/vsock_test_zerocopy.c 中找到。
/linux/Documentation/translations/zh_CN/virt/
H A Dne_overview.rst57 enclave通过本地通信通道与主虚拟机进行通信,使用virtio-vsock[5]。主虚拟机有
58 virtio-pci vsock模拟设备,而飞地虚拟机有virtio-mmio vsock模拟设备。vsock
87 [5] https://man7.org/linux/man-pages/man7/vsock.7.html
/linux/Documentation/networking/
H A Dmsg_zerocopy.rst10 The feature is currently implemented for TCP, UDP and VSOCK (with
179 For VSOCK socket, cmsg_level will be SOL_VSOCK and cmsg_type will be
248 For VSOCK:
264 For VSOCK type of socket example can be found in
265 tools/testing/vsock/vsock_test_zerocopy.c.
/linux/drivers/vhost/
H A DKconfig57 tristate "vhost virtio-vsock driver"
65 virtio_transport.ko driver loaded to use the virtio-vsock device.
H A DMakefile9 vhost_vsock-y := vsock.o
/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c131 * NE_IMAGE_LOAD_HEARTBEAT_CID - Vsock CID for enclave image loading heartbeat logic.
135 * NE_IMAGE_LOAD_HEARTBEAT_PORT - Vsock port for enclave image loading heartbeat logic.
573 * @enclave_start_info : Enclave metadata used for starting e.g. vsock CID.
641 * from it, on a newly created vsock channel,
734 * after vsock connect. in ne_start_enclave_check_booted()
/linux/tools/testing/vsock/
H A Dvsock_perf.c3 * vsock_perf - benchmark utility for vsock.
165 printf("vsock buffer %llu bytes\n", vsock_buf_bytes); in run_receiver()
414 "This is benchmarking utility, to test vsock performance.\n" in usage()
H A Dutil.h10 /* All known vsock transports, see callers of vsock_core_register() */
/linux/drivers/net/
H A Dvsockmon.c121 MODULE_DESCRIPTION("Vsock monitoring device. Based on nlmon device.");
/linux/drivers/virt/nitro_enclaves/
H A Dne_pci_dev.h149 * @enclave_cid: Context ID (CID) for the enclave vsock device.
161 * @enclave_cid: Context ID (CID) for the enclave vsock device.
/linux/include/trace/events/
H A Dvsock_virtio_transport_common.h3 #define TRACE_SYSTEM vsock
/linux/drivers/misc/vmw_vmci/
H A Dvmci_driver.c53 * vmci_register_vsock_callback() - Register the VSOCK vmci_transport callback.
/linux/include/net/
H A Dnet_namespace.h40 #include <net/netns/vsock.h>
202 struct netns_vsock vsock; member

12