Skip to main content

Crate virtio_accel_core

Crate virtio_accel_core 

Source
Expand description

Transport-independent accelerator semantics.

This crate does not name virtqueues, guest memory, host operating systems, or vendor APIs. Transport adapters validate untrusted input and translate it into these typed contracts.

Structs§

AcceleratorClass
Extensible accelerator class. Unknown values remain representable across newer implementations.
AllocatedBuffer
A newly allocated native buffer handle and its verified backing properties.
ArtifactFormat
Opaque, provider-owned executable format identifier.
ArtifactRef
Borrowed program artifact envelope.
BindingRef
One borrowed program binding. The referenced buffer must remain alive until its event is reclaimed.
BufferDesc
BufferInfo
Verified properties of one provider allocation.
BufferProperties
Properties of the actual provider allocation returned for a BufferDesc.
BufferRange
BufferUsage
Capabilities
Semantic capabilities exposed by a backend, independent of virtio feature negotiation.
ContextDesc
ContextFlags
DeviceIdentity
DeviceInfo
DeviceLimits
QueueDesc
QueueFlags
Flags for an accelerator execution queue.
TargetIdentity
Opaque target words. Their schema belongs to the artifact format, not this crate.
TransportByteSink
Zero-copy core byte-sink adapter over a transport-owned writable port.
TransportByteSource
Zero-copy core byte-source adapter over a transport-owned readable port.

Enums§

AccessMode
BackendError
DeviceInfoError
Invalid provider metadata discovered before any resource operation is invoked.
EventState
MemoryDomain
ReleaseFailure
Failure to release a provider handle.
SubmitFailure
Submission failure that makes the provider acceptance boundary explicit.
Timeout
A relative timeout measured from backend admission. Zero on the wire means infinite.

Traits§

Accelerator
Native accelerator lifecycle over provider-owned handle types.
ByteSink
A bounded byte destination that may be physically segmented.
ByteSource
A bounded byte source that may be physically segmented.

Functions§

validate_bindings
Slot/count uniqueness helper for program bindings.