Modules§
- frame
- Binary framing for all vsock communication.
Structs§
- Exec
Request - Forward
Request - Sent by the host over vsock to request forwarding to a guest port.
- Forward
Response - Sent by the guest in response to a ForwardRequest.
- Mount
Config - Mount
Request - Sent by the host over vsock to instruct the guest to mount a virtiofs device.
- Mount
Response - Sent by the guest in response to a MountRequest.
- Port
Forward Handle - Handle returned by
start_port_forwarding. Signals all listener threads to stop and joins them when dropped. - Port
Mapping - A host:guest port mapping for port forwarding over vsock.
- Read
File Request - Sandbox
- Virtual
Machine - VmConfig
Builder - VzError
- Write
File Request - Write
File Response
Enums§
Constants§
Functions§
- clone_
file - Clone
srctodst, preserving sparseness where the filesystem allows. - command_
line - What the kernel is told at boot, and the only place it is decided.
- default_
data_ dir HANZO_VM_HOME, else~/.hanzo/vm.- reflink_
file - Reflink
srctodst(FICLONE), no fallback. Fails on filesystems without reflink (ext4, tmpfs) and across filesystems (EXDEV); the caller decides where the working copy should live in that case. - validate_
checkpoint_ name - Reject checkpoint names that could escape the checkpoints directory.