Skip to main content

Crate vm

Crate vm 

Source

Modules§

frame
Binary framing for all vsock communication.

Structs§

ExecRequest
ForwardRequest
Sent by the host over vsock to request forwarding to a guest port.
ForwardResponse
Sent by the guest in response to a ForwardRequest.
MountConfig
MountRequest
Sent by the host over vsock to instruct the guest to mount a virtiofs device.
MountResponse
Sent by the guest in response to a MountRequest.
PortForwardHandle
Handle returned by start_port_forwarding. Signals all listener threads to stop and joins them when dropped.
PortMapping
A host:guest port mapping for port forwarding over vsock.
ReadFileRequest
Sandbox
VirtualMachine
VmConfigBuilder
VzError
WriteFileRequest
WriteFileResponse

Enums§

VmState

Constants§

VSOCK_PORT
VSOCK_PORT_FORWARD

Functions§

clone_file
Clone src to dst, 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 src to dst (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.