Skip to content

Commit ce38297

Browse files
Michael Zlindig
authored andcommitted
CP-31124: Add uuid in interface between Xapi and Gpumon.
Signed-off-by: Michael Z <[email protected]>
1 parent 81bada4 commit ce38297

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

gpumon/gpumon_interface.ml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ type debug_info = string
3030
type domid = int
3131
[@@deriving rpcty]
3232

33+
(** UUID of Nvidia Virtual GPU *)
34+
type vgpu_uuid = string
35+
[@@deriving rpcty]
36+
3337
(** Reason for incompatibility *)
3438
type incompatibility_reason =
3539
| Host_driver
@@ -133,6 +137,10 @@ module RPC_API(R : RPC) = struct
133137
["Domain ID of the VM in which the vGPU(s) is running."]
134138
domid
135139

140+
let vgpu_uuid_p = param ~description:
141+
["UUID of Nvidia virtual GPU."]
142+
vgpu_uuid
143+
136144
let pgpu_address_p = param ~description:
137145
["PCI bus ID of the pGPU in which the VM is currently running"
138146
;"in the form `domain:bus:device.function` PCI identifier."]
@@ -178,6 +186,7 @@ module RPC_API(R : RPC) = struct
178186
( debug_info_p
179187
@-> domid_p
180188
@-> pgpu_address_p
189+
@-> vgpu_uuid_p
181190
@-> returning nvidia_vgpu_metadata_list_p gpu_err
182191
)
183192

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"method":"get_vgpu_metadata","params":["debug_info",0,"pgpu_address"],"id":112}
1+
{"method":"get_vgpu_metadata","params":["debug_info",0,"pgpu_address","vgpu_uuid"],"id":112}

0 commit comments

Comments
 (0)