Skip to content

Commit b75eb5d

Browse files
committed
Merge pull request xapi-project#10 from robhoes/fix-vcpus
Set avail_vcpus in domain build info
2 parents a3a4351 + a5e3032 commit b75eb5d

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
@@ -1928,6 +1928,7 @@ module VM = struct
19281928
};
19291929

19301930
let max_vcpus = vm.vcpu_max in
1931+
let avail_vcpus = Array.init max_vcpus (fun i -> i < vm.vcpus) in
19311932
let max_memkb = vm.memory_static_max /// 1024L in
19321933
let target_memkb =
19331934
let open Memory in
@@ -2062,6 +2063,7 @@ module VM = struct
20622063
}) in
20632064
let b_info = Xenlight.Domain_build_info.({ b_info with
20642065
max_vcpus;
2066+
avail_vcpus;
20652067
max_memkb;
20662068
target_memkb;
20672069
video_memkb;

0 commit comments

Comments
 (0)