Documentation
¶
Index ¶
Constants ¶
const ( // GpuDeviceIDType is the assigned device ID type for GPU devices. GpuDeviceIDType = "gpu" // DeviceIDTypeLegacy is the legacy assigned device ID type for vPCI devices. DeviceIDTypeLegacy = "vpci" // DeviceIDType is the assigned device ID type for vPCI instance IDs. DeviceIDType = "vpci-instance-id" )
Variables ¶
This section is empty.
Functions ¶
func GetAssignedDeviceVMBUSInstanceID ¶
GetAssignedDeviceVMBUSInstanceID returns the instance ID of the VMBus channel device node created when a device is assigned to a UVM via vPCI.
When a device is assigned to a UVM via vPCI support in HCS, a new VMBus channel device node is created in the UVM. The actual device that was assigned in is exposed as a child on this VMBus channel device node.
A device node's instance ID is an identifier that distinguishes that device from other devices on the system. The GUID of a VMBus channel device node refers to that channel's unique identifier used internally by VMBus and can be used to determine the VMBus channel device node's instance ID.
A VMBus channel device node's instance ID is in the form:
"VMBUS\{channelTypeGUID}\{vmBusChannelGUID}"
func GetDeviceInfoFromPath ¶
GetDeviceInfoFromPath takes a device path and parses it into the PCI ID and virtual function index if one is specified.
func IsValidDeviceType ¶
IsValidDeviceType returns true if the device type is valid i.e. supported by the runtime.
Types ¶
This section is empty.