Skip to content

Commit 0dfb1f4

Browse files
committed
Drop -32 hack: not useful for migration
Signed-off-by: Edwin Török <edwin.torok@citrix.com>
1 parent b513269 commit 0dfb1f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocaml/xenopsd/xc/domain.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ let numa_placement domid ~vcpus ~cores ~memory affinity =
10031003
__FUNCTION__ domid ;
10041004
None
10051005
in
1006-
let nr_pages = (Int64.div memory 4096L |> Int64.to_int) - 32 in
1006+
let nr_pages = (Int64.div memory 4096L |> Int64.to_int) (*- 32*) in
10071007
try
10081008
D.debug "NUMAClaim domid %d: local claim on node %d: %d pages" domid
10091009
node nr_pages ;
@@ -1138,7 +1138,7 @@ let build_pre ~xc ~xs ~vcpus ~memory ~hard_affinity domid =
11381138
memory later anyway
11391139
*)
11401140
let nr_pages =
1141-
(Int64.div memory 4096L |> Int64.to_int) - 32
1141+
(Int64.div memory 4096L |> Int64.to_int)(* - 32*)
11421142
in
11431143
let xcext = Xenctrlext.get_handle () in
11441144
D.debug "NUMAClaim domid %d: global claim: %d pages" domid

0 commit comments

Comments
 (0)