Skip to content

Commit 152cb64

Browse files
committed
Add PVinPVH build_info type + a domain_type field in Vm.state
1 parent ed14734 commit 152cb64

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

xen/xenops_types.ml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ module Vm = struct
153153
type builder_info =
154154
| HVM of hvm_info
155155
| PV of pv_info
156+
| PVinPVH of pv_info
156157
[@@deriving rpc, sexp]
157158

158159
let default_builder_info = HVM default_hvm_info
@@ -240,6 +241,13 @@ module Vm = struct
240241
path: string;
241242
} [@@deriving rpc, sexp]
242243

244+
type domain_type =
245+
| Domain_HVM
246+
| Domain_PV
247+
| Domain_PVinPVH
248+
| Domain_undefined
249+
[@@deriving rpc, sexp]
250+
243251
type state = {
244252
power_state: TopLevel.power_state;
245253
domids: int list;
@@ -257,7 +265,8 @@ module Vm = struct
257265
last_start_time: float;
258266
hvm: bool;
259267
nomigrate: bool; (* true: VM must not migrate *)
260-
nested_virt: bool (* true: VM uses nested virtualisation *)
268+
nested_virt: bool; (* true: VM uses nested virtualisation *)
269+
domain_type: domain_type;
261270
} [@@deriving rpc, sexp]
262271

263272
end

0 commit comments

Comments
 (0)