Crate openhcl_tdisp

Crate openhcl_tdisp 

Source
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§

GuestToHostCommand
Represents a TDISP command sent from the guest to the host. The active variant of command identifies the command type and carries any payload specific to that command.
GuestToHostResponse
Represents a response from a TDISP command sent to the host by a guest. The active variant of response identifies the command that was processed and carries any payload returned by that command.
TdiReportStruct
The deserialized form of a TDI interface report.
TdispCommandRequestGetDeviceInterfaceInfo
Request the device’s TDISP interface information. Carries no payload.
TdispCommandResponseBind
Response to TdispCommandRequestBind. Carries no payload.
TdispCommandResponseGetDeviceInterfaceInfo
Response to TdispCommandRequestGetDeviceInterfaceInfo.
TdispCommandResponseGetTdiReport
Response to TdispCommandRequestGetTdiReport.
TdispCommandResponseStartTdi
Response to TdispCommandRequestStartTdi. Carries no payload.
TdispCommandResponseUnbind
Response to TdispCommandRequestUnbind. Carries no payload.
TdispDeviceInterfaceInfo
Represents the TDISP device interface information, such as the version and supported features.

Enums§

TdispGuestOperationError
Error returned by TDISP operations dispatched by the guest.
TdispGuestOperationErrorCode
Error code returned by TDISP operations dispatched by the guest. Corresponds to TdispGuestOperationErrorCode in lib.rs.
TdispGuestProtocolType
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.
TdispGuestUnbindReason
For a guest-initiated unbind, the guest can provide a reason.
TdispReportType
Represents a type of report that can be requested from the TDI (VF).

Traits§

GuestToHostCommandExt
GuestToHostResponseExt
Provides helper methods for common operations on GuestToHostResponse.
TdispVirtualDeviceInterface
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 GuestToHostCommand from a protobuf-encoded byte slice.
deserialize_response
Deserialize a GuestToHostResponse from a protobuf-encoded byte slice.
new_bind_command
Creates a GuestToHostCommand for the Bind command.
new_get_device_interface_info_command
Creates a GuestToHostCommand for the GetDeviceInterfaceInfo command.
new_get_tdi_report_command
Creates a GuestToHostCommand for the GetTdiReport command.
new_start_tdi_command
Creates a GuestToHostCommand for the StartTdi command.
new_unbind_command
Creates a GuestToHostCommand for the Unbind command.
serialize_command
Serialize a GuestToHostCommand to a protobuf-encoded byte vector.
serialize_response
Serialize a GuestToHostResponse to a protobuf-encoded byte vector.