generated from rust-vmm/crate-template
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This program is a vhost-user backend daemon that provides
VIRTIO GPU device emulation as specified in the VIRTIO Spec v.1.2 https://docs.oasis-open.org/virtio/virtio/v1.2/csd01/virtio-v1.2-csd01.html This crate utilizes the rutabaga crate Imported from crosvm This crate depends on this PR[rust-vmm/vhost#239] that implements support for QEMU's vhost-user-gpu protocol. This device can be tested following the instructions explained in the README.md file under staging/vhost-device-gpu/. Co-authored-by: Dorinda Bassey <[email protected]> Co-authored-by: Matej Hrica <[email protected]> Signed-off-by: Dorinda Bassey <[email protected]> Signed-off-by: Matej Hrica <[email protected]>
- Loading branch information
Dorinda Bassey
committed
Jun 6, 2024
1 parent
5457676
commit 99a78da
Showing
12 changed files
with
3,908 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"vhost-device-gpu", | ||
"vhost-device-video", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changelog | ||
## [Unreleased] | ||
|
||
### Added | ||
|
||
### Changed | ||
|
||
### Fixed | ||
|
||
### Deprecated | ||
|
||
## [0.1.0] | ||
|
||
First release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[package] | ||
name = "vhost-device-gpu" | ||
version = "0.1.0" | ||
authors = ["Dorinda Bassey <[email protected]>", "Matej Hrica <[email protected]>"] | ||
description = "A virtio-gpu device using the vhost-user protocol." | ||
repository = "https://github.com/rust-vmm/vhost-device" | ||
readme = "README.md" | ||
keywords = ["gpu", "vhost", "virt", "backend"] | ||
license = "Apache-2.0 OR BSD-3-Clause" | ||
edition = "2021" | ||
publish = false | ||
|
||
[features] | ||
xen = ["vm-memory/xen", "vhost/xen", "vhost-user-backend/xen"] | ||
|
||
[dependencies] | ||
clap = { version = "4.4", features = ["derive"] } | ||
env_logger = "0.10" | ||
libc = "0.2" | ||
log = "0.4" | ||
rutabaga_gfx = { path = "rutabaga_gfx", features = ["virgl_renderer"] } | ||
thiserror = "1.0" | ||
vhost = { git = "https://github.com/mtjhrc/vhost.git", package = "vhost", branch = "gpu-socket-final", features = ["vhost-user-backend"] } | ||
vhost-user-backend = { git = "https://github.com/mtjhrc/vhost.git", package = "vhost-user-backend", branch = "gpu-socket-final", features = ["gpu-socket"] } | ||
virtio-bindings = "0.2.2" | ||
virtio-queue = "0.12.0" | ||
vm-memory = "0.14.0" | ||
vmm-sys-util = "0.12.1" | ||
zerocopy = "0.6.3" | ||
|
||
[dev-dependencies] | ||
assert_matches = "1.5" | ||
virtio-queue = { version = "0.12", features = ["test-utils"] } | ||
vm-memory = { version = "0.14.0", features = ["backend-mmap", "backend-atomic"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE-APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../LICENSE-BSD-3-Clause |
Oops, something went wrong.