mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-27 15:45:44 +00:00
This patch is to add support for vhost input device emulation. The code skeleton heavily reuses vhost-device-i2c and vhost-device-rng, including sharing the same license, and how to create the multi-thread mode and daemon for backend virtual device. It gives detailed usage for enabling virtual input device for guest in the README.md. Signed-off-by: Leo Yan <leo.yan@linaro.org>
38 lines
1.0 KiB
TOML
38 lines
1.0 KiB
TOML
[package]
|
|
name = "vhost-device-input"
|
|
version = "0.1.0"
|
|
authors = ["Leo Yan <leo.yan@linaro.org>"]
|
|
description = "vhost input backend device"
|
|
repository = "https://github.com/rust-vmm/vhost-device"
|
|
readme = "README.md"
|
|
keywords = ["virtio-input", "vhost-user", "vhost", "virtio", "rust-vmm"]
|
|
categories = ["virtualization"]
|
|
license = "Apache-2.0 OR BSD-3-Clause"
|
|
edition = "2021"
|
|
|
|
[features]
|
|
xen = ["vm-memory/xen", "vhost/xen", "vhost-user-backend/xen"]
|
|
|
|
[dependencies]
|
|
clap = { version = "4.4", features = ["derive"] }
|
|
env_logger = "0.10"
|
|
epoll = "4.3"
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
rand = "0.8.5"
|
|
tempfile = "3.5"
|
|
thiserror = "1.0"
|
|
vhost = { version = "0.9", features = ["vhost-user-backend"] }
|
|
vhost-user-backend = "0.11"
|
|
virtio-bindings = "0.2.2"
|
|
virtio-queue = "0.10"
|
|
vm-memory = "0.13.1"
|
|
vmm-sys-util = "0.11"
|
|
evdev = "0.12"
|
|
nix = "0.26"
|
|
|
|
[dev-dependencies]
|
|
assert_matches = "1.5"
|
|
virtio-queue = { version = "0.10", features = ["test-utils"] }
|
|
vm-memory = { version = "0.13", features = ["backend-mmap", "backend-atomic"] }
|