Skip to content

Commit

Permalink
api: Add gpu_cdi extension (#14501)
Browse files Browse the repository at this point in the history
Add an API extension for adding the CDI mode for GPU passthrough (see
#13562)
  • Loading branch information
tomponline authored Nov 21, 2024
2 parents 35b0ec3 + c3feeef commit 3c2809b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/.custom_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ OVS
Pbit
PCI
PCIe
passthrough
peerings
PFs
PiB
Expand Down
4 changes: 4 additions & 0 deletions doc/api-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2515,3 +2515,7 @@ contains the total available logical CPUs available when LXD started.
## `vm_limits_cpu_pin_strategy`

Adds a new {config:option}`instance-resource-limits:limits.cpu.pin_strategy` configuration option for virtual machines. This option controls the CPU pinning strategy. When set to `none`, CPU auto pinning is disabled. When set to `auto`, CPU auto pinning is enabled.

## `gpu_cdi`

Adds support for using the Container Device Interface (CDI) specification to configure GPU passthrough in LXD containers. The `id` field of GPU devices now accepts CDI identifiers (for example, `{VENDOR_DOMAIN_NAME}/gpu=gpu{INDEX}`) for containers, in addition to DRM card IDs. This enables GPU passthrough for devices that don't use PCI addressing (like NVIDIA Tegra iGPUs) and provides a more flexible way to identify and configure GPU devices.
1 change: 1 addition & 0 deletions shared/version/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ var APIExtensions = []string{
"network_ovn_uplink_vlan",
"state_logical_cpus",
"vm_limits_cpu_pin_strategy",
"gpu_cdi",
}

// APIExtensionsCount returns the number of available API extensions.
Expand Down

0 comments on commit 3c2809b

Please sign in to comment.