Skip to content

Commit 84f17a1

Browse files
simonjbeaumontjohnelse
authored andcommitted
Log clearly when creating GPU-passthough and vGPU
Signed-off-by: Si Beaumont <[email protected]>
1 parent f9f13e8 commit 84f17a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ocaml/xapi/vgpuops.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let vgpus_of_vm ~__context vm_r =
4141
let m = Mutex.create ()
4242

4343
let create_passthrough_vgpu ~__context ~vm vgpu available_pgpus pcis =
44-
debug "Create vGPUs";
44+
debug "Creating passthrough VGPUs";
4545
let compatible_pgpus = Db.GPU_group.get_PGPUs ~__context ~self:vgpu.gpu_group_ref in
4646
let pgpus = List.intersect compatible_pgpus available_pgpus in
4747
let rec reserve_one = function
@@ -94,6 +94,7 @@ let add_pcis_to_vm ~__context vm passthru_vgpus =
9494
Db.VM.add_to_other_config ~__context ~self:vm ~key:Xapi_globs.vgpu_pci ~value
9595

9696
let create_virtual_vgpu ~__context vm vgpu =
97+
debug "Creating virtual VGPUs";
9798
let host = Helpers.get_localhost ~__context in
9899
let available_pgpus = Db.Host.get_PGPUs ~__context ~self:host in
99100
let compatible_pgpus = Db.GPU_group.get_PGPUs ~__context ~self:vgpu.gpu_group_ref in

0 commit comments

Comments
 (0)