mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add an --ondemand flag to the offload daemon's restore subcommand to support the post-copy mechanism from the live migration protocol. In on-demand mode, the daemon creates empty memfds to back the guest memory and sends them over to the VMM. This lets the VM start quickly, right after the memfds are mapped into CH's address space. At runtime, when the guest accesses a page (or the prefault handler requests it), the daemon faults it in by copying the page content into its shared memory mapping, then replies to the PageFault request so the VMM can consider the page present. Signed-off-by: Sebastien Boeuf <sboeuf@meta.com> Assisted-by: Claude:claude-opus-4-7
27 lines
635 B
TOML
27 lines
635 B
TOML
[package]
|
|
authors = ["The Cloud Hypervisor Authors"]
|
|
edition.workspace = true
|
|
name = "offload_daemon"
|
|
rust-version.workspace = true
|
|
version = "0.1.0"
|
|
|
|
[dependencies]
|
|
clap = { workspace = true, features = ["derive"] }
|
|
env_logger = { workspace = true }
|
|
libc = { workspace = true }
|
|
log = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
vm-memory = { workspace = true, features = ["backend-mmap"] }
|
|
vm-migration = { path = "../vm-migration" }
|
|
vmm = { path = "../vmm" }
|
|
vmm-sys-util = { workspace = true }
|
|
|
|
[features]
|
|
default = ["kvm"]
|
|
kvm = ["vmm/kvm"]
|
|
mshv = ["vmm/mshv"]
|
|
|
|
[lints]
|
|
workspace = true
|