Skip to main content

Crate virtio_accel_proto

Crate virtio_accel_proto 

Source
Expand description

Pointer-free, little-endian wire structures for portable virtio-accel protocol 1.0.

The versioned byte contract is a candidate for independent implementation and final audit. It intentionally does not assign or claim a Virtio device ID or standardize provider artifact contents.

Structs§

AllocateBufferRequest
CreateContextRequest
CreateQueueRequest
FeatureBits
Device-specific feature bits. Virtio transport feature bits are deliberately separate.
LoadProgramRequest
ObjectPayload
RequestFlags
Per-request flags.
RequestHeader
ResponseHeader
StatusCode
SubmitRequest
SubmitResponse
Event identifier returned for an accepted or indeterminate submission.
TransferBufferRequest
UnknownEventState
UnknownOpcode
WireBinding
WireConfig
WireDeviceInfo
WireEventState

Enums§

ConfigError
DecodeError
KnownEventState
KnownOpcode

Constants§

BASELINE_COMMAND_QUEUES
Number of command virtqueues in the baseline device model.
BASELINE_FEATURES
Feature set required by every implementation of portable protocol 1.0.
COMMAND_QUEUE
Index of the baseline command virtqueue.
HARD_MAX_BINDINGS
Protocol-wide upper bound for bindings carried by one submission.
HARD_MAX_CHAIN_DESCRIPTORS
Protocol-wide upper bound for flattened descriptors in one command chain.
HARD_MAX_REQUEST_BYTES
Protocol-wide upper bound for one complete request frame, including its header.
HARD_MAX_RESPONSE_BYTES
Protocol-wide upper bound for one complete response frame, including its header.
KNOWN_BUFFER_USAGE_BITS
Mask of buffer-usage bits assigned by protocol 1.0.
KNOWN_CONTEXT_FLAG_BITS
Context flags accepted by protocol 1.0.
KNOWN_PROGRAM_FLAG_BITS
Program-load flags accepted by protocol 1.0.
KNOWN_QUEUE_FLAG_BITS
Accelerator execution-queue flags accepted by protocol 1.0.
KNOWN_REQUEST_FLAG_BITS
Request flags accepted by protocol 1.0.
KNOWN_SUBMIT_FLAG_BITS
Submission flags accepted by protocol 1.0.
MIN_MAX_REQUEST_BYTES
Smallest request-frame limit that can carry every baseline opcode.
MIN_MAX_RESPONSE_BYTES
Smallest response-frame limit that can carry every baseline response.
PROTOCOL_MAJOR
Candidate portable protocol major version.
PROTOCOL_MINOR
Candidate portable protocol minor version.
RESERVED_FEATURES
Reserved feature bits that a protocol 1.0 implementation must leave unadvertised.
RESERVED_REQUEST_FLAG_NO_WAIT
Former draft assignment retained as a reserved-zero request bit.

Functions§

checked_array_bytes
read_exact

Type Aliases§

Le16
Le32
Le64