offload_daemon: Introduce a reference implementation

Adding a new dedicated binary that is meant to be used as a reference
implementation for validating that offloaded snapshot/restore works and
meant to be used through tests in general.

Signed-off-by: Sebastien Boeuf <sboeuf@meta.com>
Assisted-by: Claude:claude-opus-4-7
This commit is contained in:
Sebastien Boeuf
2026-05-21 02:49:16 -07:00
parent cca8e1cd52
commit 4992fabd15
5 changed files with 598 additions and 0 deletions

25
offload_daemon/Cargo.toml Normal file
View File

@@ -0,0 +1,25 @@
[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-migration = { path = "../vm-migration" }
vmm = { path = "../vmm" }
vmm-sys-util = { workspace = true }
[features]
default = ["kvm"]
kvm = ["vmm/kvm"]
mshv = ["vmm/mshv"]
[lints]
workspace = true