mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
Add a vhost-user net device executable which communiates with a VMM having vhost-user net device. Example command: vhost-user-net-device \ --tap 10.0.2.2,255.255.255.0,12:34:56:78:9a:bc \ --socket /tmp/vhost-net.sock BUG=b:179755448 TEST=run as a backend of crosvm with vhost-user net device Cq-Depend: chromium:2861979 Change-Id: Ib723cdd00381b29464855378e568a9fa3de01536 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2807205 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
34 lines
853 B
TOML
34 lines
853 B
TOML
[package]
|
|
name = "vhost_user_devices"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
net = ["data_model", "getopts", "net_util", "virtio_sys"]
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "vhost-user-net-device"
|
|
path = "src/net.rs"
|
|
required-features = ["net"]
|
|
|
|
[dependencies]
|
|
base = { path = "../base" }
|
|
data_model = { path = "../data_model", optional = true }
|
|
devices = { path = "../devices" }
|
|
getopts = { version = "0.2", optional = true }
|
|
libc = "*"
|
|
net_util = { path = "../net_util", optional = true }
|
|
remain = "*"
|
|
sync = { path = "../sync" }
|
|
thiserror = "*"
|
|
virtio_sys = { path = "../virtio_sys", optional = true }
|
|
vm_memory = { path = "../vm_memory" }
|
|
vmm_vhost = { version = "*", features = ["vhost-user-slave"] }
|
|
|
|
[dev-dependencies]
|
|
data_model = { path = "../data_model" }
|
|
tempfile = { path = "../tempfile" }
|