Signed-off-by: Jonathan Knowles <jonathan.knowles@eu.citrix.com>
Previously, during a VM.resume, both of the following functions would overwrite xen_maxmem:
1. transfer_reservation_to_domain:
xen_maxmex := reservation
2. build_pre:
xen_maxmem := static_max
However, only the first assignment was correct.
All domain creation operations trigger the transfer_reservation_to_domain function. Therefore it is safe to remove the second, faulty assignment.
Xc.domain_setvmxassist xc domid use_vmxassist;
Xc.domain_max_vcpus xc domid vcpus;
- Xc.domain_setmaxmem xc domid (Memory.kib_of_mib xen_max_mib);
Xc.domain_set_memmap_limit xc domid (Memory.kib_of_mib xen_max_mib);
Xc.shadow_allocation_set xc domid shadow_mib;
create_channels ~xc domid