| Restore method | Prepare RAM backing | Restore state and register slots | Runtime reads | Runtime writes | Page mapping on access |
|---|---|---|---|---|---|
| Full copy |
|
VMM restores vCPU and device state, registers KVM memory slots linking guest physical addresses to VMM virtual addresses, and starts the vCPUs. | Guest reads and writes the populated private RAM pages directly. | Host KVM creates or updates the mapping to the host physical page on a missing mapping or write protection. Guest access then resumes. | |
| File CoW |
|
|
|
||
| UFFD demand paging |
|
|
|||
Kernel requirements Linux 4.18 already has the basic host support for full copy, file CoW, and demand restore of anonymous RAM with UFFD. UFFD demand restore requires the host to let the VMM receive notifications about missing pages on guest access through KVM. Minimum VMM versions vary.
Cloud Hypervisor restore modesFirecracker page fault handlingLinux userfaultfd
Snapshot storage OpenSandbox Fast Sandbox stages the memory snapshot as a node-local file, then maps it on demand. CubeSandbox maps a local snapshot file with XFS or a shared file with JuiceFS, which fetches remotely on cache misses. E2B uses a userspace fault handler to look up data by index, fetch it from cache or storage, and populate the VM.
Page loading policy cube-hypervisor can prefault mappings before execution. Linux may read ahead adjacent pages on the file CoW path. E2B can prefetch pages predicted to be hot, and a UFFD configuration with background fill loads remaining pages after the guest starts.
Cube prefaultFast SandboxOpenSandbox RuntimeClassE2BKata templatesKata VMMscube-hypervisorQEMU Fast Snapshot Load