Skip to content

Commit

Permalink
CP-24185 export get_vgpu_metadata from gpumon
Browse files Browse the repository at this point in the history
This adds get_vgpu_metadata to the interface of gpumon.

Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
  • Loading branch information
lindig committed Jan 4, 2018
1 parent b898cbe commit 144fa27
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gpumon/gpumon_interface.ml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ module Nvidia = struct
* pgpu_metadata = metadata of the pGPU to check compatibility for. *)
external get_pgpu_vm_compatibility: debug_info -> pgpu_address -> domid -> nvidia_pgpu_metadata -> compatibility = ""

(** Obtain meta data for all vGPUs running in a domain. The
* [pgpu_address] is a PCI identifier of the form
* domain:bus:device.function
*)
external get_vgpu_metadata
: debug_info
-> domid
-> pgpu_address
-> nvidia_vgpu_metadata list
= ""

(** Check compatibility between a pGPU (on a host) and a list of vGPUs
* (assigned to a VM). The use case is VM.suspend/VM.resume: before
* VM.resume [nvidia_vgpu_metadata] of the suspended VM is checked
Expand Down

0 comments on commit 144fa27

Please sign in to comment.