Skip to main content

Crate virtio_accel_device

Crate virtio_accel_device 

Source
Expand description

Transport-neutral device-side state and validation.

A future rust-vmm adapter will translate descriptor chains into this layer. Provider backends must never receive guest addresses or virtqueue descriptors.

Structs§

BufferRecord
ChainLayout
Validated counts and byte totals for one flattened descriptor chain.
ChainRegion
Direction and length of one flattened chain region, without an address or transport identity.
ChildCounts
CommandProcessor
One synchronization-free command engine for a backend instance.
ContextRecord
DecodedBinding
DecodedRequest
DecoderLimits
DeviceState
Complete typed object graph for one device instance.
EventRecord
FrameDecoder
Stateless decoder configured with protocol and backend-advertised limits.
ObjectId
Opaque guest-visible identifier. Its encoding is device-private, not part of the wire ABI.
ObjectNamespace
Device-instance namespace encoded into every object ID.
ObjectTable
Bounded generational object table for one resource kind.
ProgramRecord
QueueRecord
ReadableRegion
ResetReport
ResourceCounts
ResourcePolicy
Device-private aggregate limits for provider-retained bulk storage.
ResponsePayload
Exact payload destination for one preflighted response.
ResponseWriter
Preflighted writer for one response frame.
RestoreError
RetainedBytes
Exact retained bulk-storage charges represented by a device state graph.
SegmentedSink
Borrowed segmented sink used by unit tests, fuzz targets, and simple transport adapters.
SegmentedSource
Borrowed segmented source used by unit tests, fuzz targets, and simple transport adapters.
SubmissionResources
Validated provider resources for one event-producing submission.
WritableRegion

Enums§

BufferCreateOutcome
Result of allocating provider backing before its guest-visible ID is published.
ChainLayoutError
Failure to validate the device-specific flattened chain layout.
CommandOutcome
CommandProcessError
CommandProcessorInitError
CreateError
DecodedRequestBody
DecoderLimitsError
DeviceHealth
DeviceStateConfigError
DeviceStateError
FrameDecodeError
FramePreflight
FramePreflightError
ObjectKind
ObjectTableError
RegionDirection
Direction of one flattened descriptor-backed byte region.
ReleaseState
ResetDisposition
ResetError
ResponseWriteError
SegmentedRegionError
UnrecoverableDecodeError
UnusableFrame

Functions§

preflight_command_frame
Validate one complete chain before semantic state or a backend can be reached.
status_from_backend_error
status_from_device_state_error
status_from_object_table_error
validate_chain_layout
Validate transport-neutral descriptor metadata before frame bytes are decoded.

Type Aliases§

AcceleratorState