vmsilo fork of vhost rust libraries
Find a file
Liu Jiang e8beb233b5 epoll: refine the way to manage event id
Refine the way to manage epoll event id and simplify interfaces:
- Change VhostUserBackend::exit_event() to return Option<EventFd>
  instead of Option<(EventFd, u16)>.
- Delete VringEpollHandler::exit_event_id.
- Add VringEpollHandler::register_event/unregister_event for internal
  use.
- Make VringEpollHandler::register_listener/unregister_listener() for
  external users only, and 'data` range [0..backend.num_queues()] is
  reserved for queues and exit event.

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
2021-09-07 16:32:34 +08:00
.cargo Fix build on aarch64+musl 2021-03-14 09:59:41 +05:30
.github dependabot: Allow updating dependencies 2021-09-06 10:03:28 +02:00
rust-vmm-ci@1311bfa03f Bump rust-vmm-ci from 8901e77 to 1311bfa 2021-09-02 08:50:08 +02:00
src epoll: refine the way to manage event id 2021-09-07 16:32:34 +08: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 backend: Set rev for virtio-queue 2021-09-03 21:24:22 +08:00
CODEOWNERS CODEOWNERS: add stefano-garzarella 2021-08-27 14:00:53 +02:00
coverage_config_x86_64.json epoll: refine the way to manage event id 2021-09-07 16:32:34 +08:00
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.