crosvm/swap/Cargo.toml
Shintaro Kawamura 818f933918 swap: uprev userfaultfd to 0.8.1
userfaultfd 0.8.1 contains an update on IoctlFlags which now does not
cause errors if kernel output contains unknown flags.

This fix an issue that it fails to enable vmm-swap on kernel 6.6 which
adds UFFDIO_POISON flag to its output.

Corresponding rust crate update is https://crrev.com/c/5196274

BUG=b:315578762
TEST=cros build-packages --board=dedede crosvm
TEST=tast run $DUT arc.Swap

Change-Id: If70863c309afaa93beb4c62bb975aa8c87ce7f5d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5196097
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Shin Kawamura <kawasin@google.com>
Reviewed-by: David Stevens <stevensd@chromium.org>
2024-01-17 01:22:00 +00:00

46 lines
1.1 KiB
TOML

[package]
name = "swap"
version = "0.1.0"
authors = ["The ChromiumOS Authors"]
edition = "2021"
# The process tests will use fork, which requires a custom test harness to enforce single threaded
# execution.
[[test]]
name = "main"
path = "tests/main.rs"
harness = false
[features]
trace_marker = ["cros_tracing/trace_marker"]
log_page_fault = []
enable = ["userfaultfd", "userfaultfd-sys"]
[dependencies]
anyhow = "*"
base = { path = "../base" }
cfg-if = "*"
cros_tracing = { path = "../cros_tracing" }
data_model = { path = "../common/data_model" }
jail = { path = "../jail" }
num_cpus = "*"
once_cell = "*"
remain = "*"
serde = { version = "1", features = ["derive"] }
serde_json = "*"
sync = { path = "../common/sync" } # provided by ebuild
thiserror = "*"
vm_memory = { path = "../vm_memory" }
[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
libc = "*"
[target.'cfg(target_os="linux")'.dependencies]
userfaultfd = { version = "0.8.1", optional = true }
userfaultfd-sys = { version = "0.5.0", optional = true }
[dev_dependencies]
libtest-mimic = "0.6"
tempfile = "*"