Skip to content

Commit 09bd7ec

Browse files
thomassarobhoes
authored andcommitted
CP-20431: MxGPU in Xenops_interface.Vgpu
Broaden the Vgpu.implementation type to include MxGPU implementations. Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com> Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
1 parent da83bba commit 09bd7ec

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

xen/xenops_interface.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ module Vgpu = struct
120120
type implementation =
121121
| GVT_g of gvt_g
122122
| Nvidia of nvidia
123+
| MxGPU of mxgpu
123124

124125
type id = string * string
125126

xen/xenops_types.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ module Vgpu = struct
3939
config_file: string;
4040
} [@@deriving sexp, rpc]
4141

42+
type mxgpu = {
43+
physical_function: Pci.address;
44+
vgpus_per_pgpu: int64;
45+
framebufferbytes: int64;
46+
} [@@deriving sexp, rpc]
47+
4248
end
4349

4450
module Vm = struct

0 commit comments

Comments
 (0)