Skip to content

Commit a5e3032

Browse files
committed
Set avail_vcpus in domain build info
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
1 parent 0bb1df5 commit a5e3032

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xl/xenops_server_xenlight.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,7 @@ module VM = struct
17501750
};
17511751

17521752
let max_vcpus = vm.vcpu_max in
1753+
let avail_vcpus = Array.init max_vcpus (fun i -> i < vm.vcpus) in
17531754
let max_memkb = vm.memory_static_max /// 1024L in
17541755
let target_memkb =
17551756
let open Memory in
@@ -1868,6 +1869,7 @@ module VM = struct
18681869
}) in
18691870
let b_info = Xenlight.Domain_build_info.({ b_info with
18701871
max_vcpus;
1872+
avail_vcpus;
18711873
max_memkb;
18721874
target_memkb;
18731875
video_memkb;

0 commit comments

Comments
 (0)