Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental vhost-user-video backend #445

Merged
merged 6 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ More information may be found in its [README file](./staging/README.md).
Here is the list of device backends in **staging**:

- [Sound](https://github.com/rust-vmm/vhost-device/blob/main/staging/vhost-device-sound/README.md)
- [Video](https://github.com/rust-vmm/vhost-device/blob/main/staging/vhost-device-video/README.md)

<!--
Template:
Expand Down
131 changes: 130 additions & 1 deletion staging/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions staging/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
resolver = "2"
members = [
"vhost-device-sound",
"vhost-device-video",
]
15 changes: 15 additions & 0 deletions staging/vhost-device-video/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Changelog
## [Unreleased]

### Added

### Changed

### Fixed

### Deprecated

## [0.1.0]

First release

42 changes: 42 additions & 0 deletions staging/vhost-device-video/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[package]
name = "vhost-device-video"
version = "0.1.0"
authors = ["Albert Esteve <[email protected]>"]
description = "A virtio-video device using the vhost-user protocol."
repository = "https://github.com/rust-vmm/vhost-device"
readme = "README.md"
keywords = ["vhost", "video", "virt", "backend"]
aesteve-rh marked this conversation as resolved.
Show resolved Hide resolved
license = "Apache-2.0 OR BSD-3-Clause"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
aesteve-rh marked this conversation as resolved.
Show resolved Hide resolved
xen = ["vm-memory/xen", "vhost/xen", "vhost-user-backend/xen"]
default = ["v4l2-decoder"]
v4l2-decoder = ["v4l2r"]

[dependencies]
bitflags = "2.3.3"
clap = { version = "4.4", features = ["derive"] }
env_logger = "0.10"
epoll = "4.3"
num_enum = "0.7"
log = "0.4"
libc = "0.2.147"
thiserror = "1.0"
futures-executor = { version = "0.3", features = ["thread-pool"] }
vhost = { version = "0.8", features = ["vhost-user-slave"] }
vhost-user-backend = "0.10"
virtio-bindings = "0.2.1"
virtio-queue = "0.9"
vm-memory = "0.12"
vmm-sys-util = "0.11"
v4l2r = { git = "https://github.com/Gnurou/v4l2r", rev = "110fd77", optional = true }

[dev-dependencies]
assert_matches = "1.5"
rstest = "0.18.2"
tempfile = "3.8.0"
virtio-queue = { version = "0.9", features = ["test-utils"] }
vm-memory = { version = "0.12", features = ["backend-mmap", "backend-atomic"] }
1 change: 1 addition & 0 deletions staging/vhost-device-video/LICENSE-APACHE
1 change: 1 addition & 0 deletions staging/vhost-device-video/LICENSE-BSD-3-Clause
Loading