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ยง
- Block
Options - Block device
- Console
Options - Console device
- FsOptions
- FS Device
- NetBackend
- NetOptions
- Net device
- Vhost
User Listener - On Unix we can listen to a socket.
- Vhost
User Stream - Connection from connected socket
- Vhost
User Vsock Device - 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.
- Vsock
Options - Vsock device
- WlOptions
- Wayland device
Enumsยง
Traitsยง
- Vhost
User Connection Trait - Trait that the platform-specific type
VhostUserConnectionneeds to implement. It contains all the methods that are ok to call from non-platform specific code. - Vhost
User Device - Trait for vhost-user devices. Analogous to the
VirtioDevicetrait. - Vhost
User Device Builder - A trait for not-yet-built vhost-user devices.
Functionsยง
- create_
vu_ console_ device - Return a new vhost-user console device.
paramsare the deviceโs configuration, andkeep_rdsis a vector into whichRawDescriptorsthat 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
argsis invalid or the device fails to run. - run_
console_ device - Starts a vhost-user console device.
Returns an error if the given
argsis invalid or the device fails to run. - run_
fs_ device - Starts a vhost-user fs device.
Returns an error if the given
argsis invalid or the device fails to run. - run_
net_ device - Starts a vhost-user net device.
Returns an error if the given
argsis invalid or the device fails to run. - run_
vsock_ device - Returns an error if the given
argsis invalid or the device fails to run. - run_
wl_ device - Starts a vhost-user wayland device.
Returns an error if the given
argsis invalid or the device fails to run.