Skip to main content

Crate virtio_accel_guest

Crate virtio_accel_guest 

Source
Expand description

No-std reference driver for portable virtio-accel protocol 1.0.

Callers provide complete driver-owned chains. The client writes exact request frames into those chains, tracks bounded in-flight ownership, and validates all device-written bytes after used reclamation. It names no VMM, guest-memory library, operating system, or device backend.

Structs§

AllocateBuffer
Pending buffer allocation.
Binding
One borrowed binding encoded directly into a submission chain.
Buffer
Guest-owned buffer handle and retained bounds needed for local validation.
BufferDesc
Requested buffer properties retained by the typed guest handle.
BufferRange
Nonempty checked buffer byte range.
BufferUsage
Protocol 1.0 buffer usage bits.
CancelEvent
Pending CancelEvent operation.
Context
Guest-owned context handle.
CreateContext
Pending context-creation operation.
CreateExecutionQueue
Pending accelerator execution-queue creation.
DestroyContext
Pending context destruction; retained on failure for explicit retry.
DestroyEvent
Pending event destruction; retained on failure for explicit retry.
DestroyExecutionQueue
Pending execution-queue destruction; retained on failure for explicit retry.
DeviceInfo
Validated device discovery result.
Event
Guest-owned submission event handle.
ExecutionQueue
Guest-owned accelerator execution-queue handle.
FreeBuffer
Pending buffer release; retained on failure for explicit retry.
GetDeviceInfo
Pending device-discovery operation.
GuestClient
Bounded, single-owner reference driver over a portable command queue.
GuestConfig
Validated protocol configuration and bounded guest tracking limit.
LoadProgram
Pending program load.
Pending
Typed operation token retained until its matching completion is observed.
PollEvent
Pending nonblocking event poll.
Program
Guest-owned resident program handle.
ProgramDesc
Opaque program envelope retained until program creation completes.
ReadBuffer
Pending buffer-read operation.
ReadBufferOutput
Metadata for a successful READ_BUFFER response retained in its returned chain.
StaleOperation
Operation metadata recovered only after its queue epoch is stale.
StartError
Failed request start with both caller-owned inputs returned.
Submit
Pending submission admission.
UnloadProgram
Pending program unload; retained on failure for explicit retry.
WriteBuffer
Pending WriteBuffer operation.

Enums§

AccessMode
Program binding access mode.
ClientHealth
Whether the client may publish new work.
ClientInitError
Failure to construct a bounded guest client.
Completion
Terminal result for one matched request completion.
DeviceInfoError
Invalid device-information payload.
EventState
Validated accelerator execution state.
FailureDisposition
Guest-side ownership meaning of a well-formed non-success response.
GuestConfigError
Invalid guest-visible configuration or negotiation result.
MemoryDomain
Requested provider-owned memory placement.
PumpResult
Result of consuming at most one used-ring entry.
QueueSetupError
Failure while restoring queue configuration after reset.
RequestPoll
Result of synchronously polling one typed request.
ResponseError
Malformed or inaccessible device response.
StartErrorKind
Failure before request ownership transfers to the queue.
SubmissionOutcome
Successful or ownership-indeterminate submission admission.
ValueError
Locally invalid typed request value.

Traits§

Operation
Sealed response contract for one typed pending operation.

Type Aliases§

StartResult
Result of starting one typed operation on queue Q.