Module vhost_user_backend

Source

Re-exports§

pub use connection::sys::VhostUserListener;
pub use connection::sys::VhostUserStream;
pub use connection::VhostUserConnectionTrait;
pub use gpu::run_gpu_device;
pub use gpu::Options as GpuOptions;
pub use handler::VhostUserDevice;
pub use crate::virtio::vhost_user_backend::connection::BackendConnection;

Modules§

connection
fs 🔒
gpu
handler
Library for implementing vhost-user device executables.
params
vsock 🔒
wl 🔒

Structs§

FsOptions
FS Device
VhostUserVsockDevice
A vhost-vsock device which handle is already opened. This allows the parent process to open the vhost-vsock device, create this structure, and pass it to the child process so it doesn’t need the rights to open the vhost-vsock device itself.
VsockOptions
Vsock device
WlOptions
Wayland device

Traits§

VhostUserDeviceBuilder
A trait for not-yet-built vhost-user devices.

Functions§

run_fs_device
Starts a vhost-user fs device. Returns an error if the given args is invalid or the device fails to run.
run_vsock_device
Returns an error if the given args is invalid or the device fails to run.
run_wl_device
Starts a vhost-user wayland device. Returns an error if the given args is invalid or the device fails to run.