mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 20:19:07 +00:00
Added new crosvm commands "crosvm swap enable" and "crosvm swap status". swap crate exposes SwapController to control the vmm-swap feature. When vmm-swap is enabled, all the pages on the GuestMemory are swapped out to a file and are freed to give a lot of memory back to OS. design document: go/tanooki-phase1-dd BUG=b:215093219 TEST=manually tested Change-Id: Ideb10b0119edd9f47b66c8ac61add21ac08181d4 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3871758 Reviewed-by: David Stevens <stevensd@chromium.org> Commit-Queue: Shin Kawamura <kawasin@google.com>
22 lines
473 B
TOML
22 lines
473 B
TOML
[package]
|
|
name = "swap"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
anyhow = "*"
|
|
base = { path = "../base" }
|
|
data_model = "*"
|
|
libc = "*"
|
|
minijail = "*"
|
|
remain = "*"
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
sync = { path = "../common/sync" } # provided by ebuild
|
|
tempfile = "*"
|
|
thiserror = "*"
|
|
userfaultfd = "0.5.0"
|
|
vm_memory = { path = "../vm_memory"}
|
|
|
|
[patch.crates-io]
|
|
data_model = { path = "../common/data_model" }
|