crosvm/vhost_user_devices/Cargo.toml
Keiichi Watanabe 8c817dd349 vhost_user_devices: Add vhost-user net device
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>
2021-05-11 18:34:40 +00:00

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" }