Skip to content

ext/sockets: AF_VSOCK support addition. - #23623

Draft
devnexen wants to merge 5 commits into
php:masterfrom
devnexen:socket_avsock
Draft

ext/sockets: AF_VSOCK support addition.#23623
devnexen wants to merge 5 commits into
php:masterfrom
devnexen:socket_avsock

Conversation

@devnexen

@devnexen devnexen commented Sep 8, 2026

Copy link
Copy Markdown
Member

vsock carries traffic across the VM boundary with no NIC, no IP and no DNS, so it works before guest networking is up, or where there is none at all as in AWS Nitro Enclaves. A guest connects to VMADDR_CID_HOST and a host to the guest's context ID, both through the usual socket_bind()/socket_connect() with the CID passed as the address string.

vsock carries traffic across the VM boundary with no NIC, no IP and no DNS,
so it works before guest networking is up, or where there is none at all as
in AWS Nitro Enclaves. A guest connects to VMADDR_CID_HOST and a host to the
guest's context ID, both through the usual socket_bind()/socket_connect()
with the CID passed as the address string.
to really work no test can be exercised really).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant