Expand description
This module provides resources and traits for a TDISP client device interface for OpenHCL devices.
See: vm/devices/tdisp for more information.
Structs§
- Guest
ToHost Command - Represents a TDISP command sent from the guest to the host. The active
variant of
commandidentifies the command type and carries any payload specific to that command. - Guest
ToHost Response - Represents a response from a TDISP command sent to the host by a guest. The
active variant of
responseidentifies the command that was processed and carries any payload returned by that command. - TdiReport
Struct - The deserialized form of a TDI interface report.
- Tdisp
Command Request GetDevice Interface Info - Request the device’s TDISP interface information. Carries no payload.
- Tdisp
Command Response Bind - Response to TdispCommandRequestBind. Carries no payload.
- Tdisp
Command Response GetDevice Interface Info - Response to TdispCommandRequestGetDeviceInterfaceInfo.
- Tdisp
Command Response GetTdi Report - Response to TdispCommandRequestGetTdiReport.
- Tdisp
Command Response Start Tdi - Response to TdispCommandRequestStartTdi. Carries no payload.
- Tdisp
Command Response Unbind - Response to TdispCommandRequestUnbind. Carries no payload.
- Tdisp
Device Interface Info - Represents the TDISP device interface information, such as the version and supported features.
Enums§
- Tdisp
Guest Operation Error - Error returned by TDISP operations dispatched by the guest.
- Tdisp
Guest Operation Error Code - Error code returned by TDISP operations dispatched by the guest. Corresponds to TdispGuestOperationErrorCode in lib.rs.
- Tdisp
Guest Protocol Type - Represents the type of CVM technology the guest requests to use. As new features are added by respective OEMs, this enum will be extended if these protocols change.
- Tdisp
Guest Unbind Reason - For a guest-initiated unbind, the guest can provide a reason.
- Tdisp
Report Type - Represents a type of report that can be requested from the TDI (VF).
Traits§
- Guest
ToHost Command Ext - Guest
ToHost Response Ext - Provides helper methods for common operations on
GuestToHostResponse. - Tdisp
Virtual Device Interface - Represents a TDISP device assigned to a guest partition. This trait allows implementations to send TDISP commands to the host through a backing interface such as a VPCI channel.
Functions§
- deserialize_
command - Deserialize a
GuestToHostCommandfrom a protobuf-encoded byte slice. - deserialize_
response - Deserialize a
GuestToHostResponsefrom a protobuf-encoded byte slice. - new_
bind_ command - Creates a
GuestToHostCommandfor theBindcommand. - new_
get_ device_ interface_ info_ command - Creates a
GuestToHostCommandfor theGetDeviceInterfaceInfocommand. - new_
get_ tdi_ report_ command - Creates a
GuestToHostCommandfor theGetTdiReportcommand. - new_
start_ tdi_ command - Creates a
GuestToHostCommandfor theStartTdicommand. - new_
unbind_ command - Creates a
GuestToHostCommandfor theUnbindcommand. - serialize_
command - Serialize a
GuestToHostCommandto a protobuf-encoded byte vector. - serialize_
response - Serialize a
GuestToHostResponseto a protobuf-encoded byte vector.