Skip to content

Commit 144fa27

Browse files
committed
CP-24185 export get_vgpu_metadata from gpumon
This adds get_vgpu_metadata to the interface of gpumon. Signed-off-by: Christian Lindig <[email protected]>
1 parent b898cbe commit 144fa27

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gpumon/gpumon_interface.ml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ module Nvidia = struct
4545
* pgpu_metadata = metadata of the pGPU to check compatibility for. *)
4646
external get_pgpu_vm_compatibility: debug_info -> pgpu_address -> domid -> nvidia_pgpu_metadata -> compatibility = ""
4747

48+
(** Obtain meta data for all vGPUs running in a domain. The
49+
* [pgpu_address] is a PCI identifier of the form
50+
* domain:bus:device.function
51+
*)
52+
external get_vgpu_metadata
53+
: debug_info
54+
-> domid
55+
-> pgpu_address
56+
-> nvidia_vgpu_metadata list
57+
= ""
58+
4859
(** Check compatibility between a pGPU (on a host) and a list of vGPUs
4960
* (assigned to a VM). The use case is VM.suspend/VM.resume: before
5061
* VM.resume [nvidia_vgpu_metadata] of the suspended VM is checked

0 commit comments

Comments
 (0)