Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ocaml/xenopsd/xc/domain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1002,13 +1002,17 @@ let numa_placement domid ~vcpus ~cores ~memory affinity =
in
let nr_pages = Int64.div memory 4096L |> Int64.to_int in
try
D.debug "NUMAClaim domid %d: local claim on node %d: %d pages" domid
node nr_pages ;
Xenctrlext.domain_claim_pages xcext domid ~numa_node nr_pages ;
set_vcpu_affinity cpu_affinity ;
Some (node, memory)
with
| Xenctrlext.Not_available ->
(* Xen does not provide the interface to claim pages from a single NUMA
node, ignore the error and continue. *)
D.debug "NUMAClaim domid %d: local claim not available" domid ;
set_vcpu_affinity cpu_affinity ;
None
| Xenctrlext.Unix_error (errno, _) ->
D.info
Expand Down
Loading