vpci

package
v0.15.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

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

func GetAssignedDeviceVMBUSInstanceID(vmBusChannelGUID string) string

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

func GetDeviceInfoFromPath(rawDevicePath string) (string, uint16)

GetDeviceInfoFromPath takes a device path and parses it into the PCI ID and virtual function index if one is specified.

func IsValidDeviceType

func IsValidDeviceType(deviceType string) bool

IsValidDeviceType returns true if the device type is valid i.e. supported by the runtime.

Types

This section is empty.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL