VSOCK: VM ↔host socket with minimal configuration
summary
AF_VSOCK offers a POSIX sockets API between VM and host using a virtio device that needs only a guest CID assigned on the host while the guest requires no network setup. Demo uses qemu-kvm/libvirt, vhost/virtio transports and nc and Python examples to show connect/accept; example CID 33 and well-known CID 2 (host) and CID 1 (local) values are used. Linux 5.5 adds multi-transport support, Linux 5.6 adds loopback, netns support is experimental.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:14VSOCK
- 2:19Address family
- 3:14Use cases
- 3:54Transports
- 4:41QKB Home
- 7:47Multiple Multi Transport
- 8:42Local Communication
- 10:22Natural namespace support
- 12:03Natural namespace demo
- 13:54Tools and languages
- 14:43Example
- 15:00Demo
- 16:39Conclusion
- 17:13Questions
related talks
19mA Linux Bus for SVSM Services: Build New, Reuse VIRTIO, or Both?
41mVirtIo-Net PCIe Function Using Linux PCI Endpoint Framework
27mVFIO User - Using VFIO as the IPC Protocol in Multi-process QEMU
19mlibvfio-user: Status Update
21mVirtio Devices Emulation in SPDK Based on Vfio-User Protocol
36mShared Virtual Addressing for High Performance Arm Infrastructure Platforms
55mSecure IO BoF
35mVirtio-Loopback: An Hardware Abstraction Layer (HAL) for Non-Virtualized Environm...
