mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
This is a reland of commit 77688e305d
Tests are ignored on some architectures due to the single thread test
issues b/258371694
Original change's description:
> base: unix: add fork_process
>
> The vmm-swap feature will fork a process to run monitoring userfaultfd.
>
> crosvm uses minijail to fork device processes `ProxyDevice::new()`.
>
> Minijail panics on fork if there are any other threads running. The test
> must be executed in a single thread.
>
> design document: go/tanooki-phase1-dd
>
> BUG=b:215093219
> TEST=cargo test -p base -- --test-threads=1
>
> Change-Id: I408dbfa4d606cbe7b2218096b414512710d60100
> Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3935683
> Reviewed-by: David Stevens <stevensd@chromium.org>
Bug: b:215093219
Change-Id: I94b912b04947cada3e3332861f18988873dfcf81
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4015626
Reviewed-by: David Stevens <stevensd@chromium.org>
Commit-Queue: David Stevens <stevensd@chromium.org>
Auto-Submit: Shin Kawamura <kawasin@google.com>
41 lines
961 B
TOML
41 lines
961 B
TOML
[package]
|
|
name = "base"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[features]
|
|
chromeos = []
|
|
kiwi = []
|
|
|
|
[dependencies]
|
|
audio_streams = { path = "../common/audio_streams" } # provided by ebuild
|
|
base_event_token_derive = { path = "base_event_token_derive", version = "*" }
|
|
data_model = { path = "../common/data_model" } # provided by ebuild
|
|
sync = { path = "../common/sync" } # provided by ebuild
|
|
|
|
cfg-if = "*"
|
|
chrono = "*"
|
|
env_logger = "0.9.0"
|
|
libc = "*"
|
|
log = "0.4"
|
|
once_cell = "1.7"
|
|
remain = "0.2"
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
serde_json = "*"
|
|
smallvec = "1.6.1"
|
|
tempfile = "3"
|
|
thiserror = "1.0.20"
|
|
uuid = { version = "0.8.2", features = ["v4"] }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
minijail = "*"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
rand = "0.8"
|
|
winapi = "*"
|
|
win_util = { path = "../win_util"}
|
|
protobuf = { version = "*", features = [ "with-serde" ] }
|
|
|
|
[target.'cfg(windows)'.dev-dependencies]
|
|
regex = "*"
|