vmsilo fork of vhost rust libraries
Find a file
Gaelan Steele 2db5f82812 Minimally implement {get,set}_inflight_fd.
This implementation just returns Err(InvalidOperation), which is the
correct response for a backend that hasn't negotiated the inflight
feature. Eventually, it'd be nice if we allowed the backend to
negotiate this feature; harshanavkis@8b44378 and slp@3346318 are two
attempts at this.

This is intended as a simple, bikeshed-free way to get things compiling
again while we decide on, and implement, a way to actually support the
inflight feature.

Signed-off-by: Gaelan Steele <gbs@canishe.com>
2021-06-28 03:19:22 -07:00
.cargo Fix build on aarch64+musl 2021-03-14 09:59:41 +05:30
.github Upgrade to GitHub-native Dependabot 2021-05-11 11:09:00 +03:00
rust-vmm-ci@6591890ee1 Bump rust-vmm-ci from 24d66cd to 6591890 2021-06-15 07:04:29 +00:00
src Minimally implement {get,set}_inflight_fd. 2021-06-28 03:19:22 -07:00
.gitignore Add gitignore 2021-05-19 19:36:43 -07:00
.gitmodules Initial commit 2020-09-17 13:51:21 +03:00
Cargo.toml Rename vm-virtio to virtio-queue. 2021-06-27 19:50:40 -07:00
CODEOWNERS Add sboeuf to CODEOWNERS 2020-11-26 13:35:59 +01:00
coverage_config.json Initial commit 2020-09-17 13:51:21 +03:00
coverage_config_x86_64.json Add default coverage config for x86_64 2021-03-14 09:59:41 +05:30
LICENSE Rename LICENSE-APACHE to LICENSE 2020-11-25 17:01:17 +01:00
README.md Update README.md 2020-11-25 17:01:17 +01:00

vhost-user-backend

Design

This crate provides convenient abstractions for implementing vhost-user device server backends:

  • A vhost-user backend trait (VhostUserBackend)
  • A public API for the backend to interact with (VhostUserDaemon)
  • An structure including virtio queue related elements (Vring)
  • A worker for receiving queue events and forwarding them to the backend.

Usage

Users of this create are expected to implement the VhostUserBackend trait and to initialize the execution context by instantiating VhostUserDaemon and calling to its start method.