Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion ocaml/quicktest/quicktest_vm_memory.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let check_tasks tasks =
let one t ~host ~vm ~workload_vm n =
Trace.with_ __FUNCTION__ @@ fun scope ->
workload t ~host ~workload_vm ;
let vms = fill_mem_n t ~workaround_migration:true ~host ~vm ~n in
let vms = fill_mem_n t ~workaround_migration:false ~host ~vm ~n in

let migration_host, migration_vm = List.nth vms 0 in

Expand Down
9 changes: 6 additions & 3 deletions ocaml/xenopsd/xc/xenops_server_xen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1852,13 +1852,16 @@ module VM = struct
"VM = %s; using memory_dynamic_min = %Ld and \
memory_dynamic_max = %Ld"
vm.Vm.id vm.memory_dynamic_min vm.memory_dynamic_max ;
(vm.memory_dynamic_min, vm.memory_dynamic_max, None)
( vm.memory_dynamic_min +++ overhead_bytes
, vm.memory_dynamic_max +++ overhead_bytes
, None
)
)
in
let min_kib = kib_of_bytes_used (min_bytes +++ overhead_bytes)
let min_kib = kib_of_bytes_used min_bytes
and memory_total_source_kib =
Option.map kib_of_bytes_used memory_total_source_bytes
and max_kib = kib_of_bytes_used (max_bytes +++ overhead_bytes) in
and max_kib = kib_of_bytes_used max_bytes in
(* XXX: we would like to be able to cancel an in-progress
with_reservation *)
let dbg = Xenops_task.get_dbg task in
Expand Down
Loading