Expand description
Vsock Communication Layer
Host-to-guest communication via virtio-vsock for Firecracker microVMs. Uses a simple JSON-RPC protocol over length-prefixed messages.
Structs§
- Agent
Request - Request sent from host to guest
- Agent
Response - Response from guest to host
- RunResult
- Result of running a command in the guest
- Vsock
Client - Vsock client for communicating with guest agent
- Vsock
Connection - A persistent vsock connection that can be reused for multiple commands. This saves the overhead of reconnecting and re-handshaking for each command.
Enums§
- Request
Type - Request types supported by the guest agent
- Shell
Event - Shell event types for async shell communication
Constants§
- AGENT_
PORT - Default port for the guest agent
- HOST_
CID - Host CID (always 2 for the host)
Functions§
- wait_
for_ agent - Wait for the guest agent to become available