Module vhost_user_backend

Source

Re-exportsยง

pub use gpu::run_gpu_device;
pub use gpu::Options as GpuOptions;
pub use snd::run_snd_device;
pub use snd::Options as SndOptions;

Modulesยง

block ๐Ÿ”’
connection ๐Ÿ”’
console ๐Ÿ”’
fs ๐Ÿ”’
gpu
handler ๐Ÿ”’
Library for implementing vhost-user device executables.
net ๐Ÿ”’
params
snd
vsock ๐Ÿ”’
wl ๐Ÿ”’

Structsยง

BlockOptions
Block device
ConsoleOptions
Console device
FsOptions
FS Device
NetBackend
NetOptions
Net device
VhostUserListener
On Unix we can listen to a socket.
VhostUserStream
Connection from connected socket
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

Enumsยง

BackendConnection

Traitsยง

VhostUserConnectionTrait
Trait that the platform-specific type VhostUserConnection needs to implement. It contains all the methods that are ok to call from non-platform specific code.
VhostUserDevice
Trait for vhost-user devices. Analogous to the VirtioDevice trait.
VhostUserDeviceBuilder
A trait for not-yet-built vhost-user devices.

Functionsยง

create_vu_console_device
Return a new vhost-user console device. params are the deviceโ€™s configuration, and keep_rds is a vector into which RawDescriptors that need to survive a fork are added, in case the device is meant to run within a child process.
parse_wayland_sock
run_block_device
Starts a vhost-user block device. Returns an error if the given args is invalid or the device fails to run.
run_console_device
Starts a vhost-user console device. Returns an error if the given args is invalid or the device fails to run.
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_net_device
Starts a vhost-user net 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.