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§
- Device
Traits - Device
Traits Shared Memory - Peeked
Work - A descriptor that has been peeked from a
VirtioQueuewithout advancing the available index. - Queue
Resources - Virtio
Queue - Virtio
Queue Callback Work - A descriptor chain popped from a
VirtioQueue.
Enums§
Constants§
- DEFAULT_
QUEUE_ SIZE - Default queue size for virtio devices. Devices that don’t override
VirtioDevice::queue_sizewill use this value. - MAX_
QUEUE_ SIZE - Maximum queue size the transport will accept from the guest.