Skip to main content

Crate virtio

Crate virtio 

Source
Expand description

Core virtio device infrastructure

Re-exports§

pub use device::DynVirtioDevice;
pub use device::VirtioDevice;
pub use virtio_spec as spec;
pub use transport::*;

Modules§

device
Per-queue virtio device trait (VirtioDevice) and object-safe wrapper (DynVirtioDevice).
in_order
In-order completion discipline layered on top of a VirtioQueue.
queue
Core virtio queue implementation, without any notification mechanisms, async support, or other transport-specific details.
regions
Helpers for working with data regions defined by virtio descriptors.
resolve
Resource resolver definitions for virtio devices.
resolver
Resolver for virtio device infrastructure.
test_helpers
Shared test helpers for writing integration tests that drive virtio devices through descriptor rings.
transport
Run virtio devices over different transports

Structs§

DeviceTraits
DeviceTraitsSharedMemory
PeekedWork
A descriptor that has been peeked from a VirtioQueue without advancing the available index.
QueueResources
VirtioQueue
VirtioQueueCallbackWork
A descriptor chain popped from a VirtioQueue.

Enums§

VirtioWriteError

Constants§

DEFAULT_QUEUE_SIZE
Default queue size for virtio devices. Devices that don’t override VirtioDevice::queue_size will use this value.
MAX_QUEUE_SIZE
Maximum queue size the transport will accept from the guest.