Skip to content

Instantly share code, notes, and snippets.

@nrdmn
nrdmn / vsock-notes.md
Last active April 23, 2025 01:53
vsock notes

vsock notes

about vsocks

Vsocks are a means of providing socket communication (either stream or datagram) directly between VMs and their host operating system. The host and each VM have a 32 bit CID (Context IDentifier) and may connect or bind to a 32 bit port number. Ports < 1024 are privileged ports.