Skip to content

Commit

Permalink
Merge pull request #66 from djs55/arm/shadow-allocation-set
Browse files Browse the repository at this point in the history
arm: shadow_allocation_set is not supported; log failure and continue
  • Loading branch information
Jon Ludlam committed Jun 4, 2014
2 parents cbcb00f + 5da5648 commit c10bbd5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions xc/domain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,14 @@ let build_pre ~xc ~xs ~vcpus ~xen_max_mib ~shadow_mib ~required_host_free_mib do
error "VM = %s; domid = %d; domain_set_mmap_limit %Ld KiB failed: %s"
(Uuid.to_string uuid) domid kib (Printexc.to_string e)
end;
debug "VM = %s; domid = %d; shadow_allocation_set %d MiB" (Uuid.to_string uuid) domid shadow_mib;
Xenctrl.shadow_allocation_set xc domid shadow_mib;

begin
try
debug "VM = %s; domid = %d; shadow_allocation_set %d MiB" (Uuid.to_string uuid) domid shadow_mib;
Xenctrl.shadow_allocation_set xc domid shadow_mib;
with e ->
error "VM = %s; domid = %d; shadow_allocation_set %d failed: %s"
(Uuid.to_string uuid) domid shadow_mib (Printexc.to_string e)
end;
create_channels ~xc uuid domid

let resume_post ~xc ~xs domid =
Expand Down

0 comments on commit c10bbd5

Please sign in to comment.