]> xenbits.xensource.com Git - xcp/xen-api.git/commit
[CA-46591] Prevents build_pre from overwriting xen_maxmem.
authorJonathan Knowles <jonathan.knowles@eu.citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
committerJonathan Knowles <jonathan.knowles@eu.citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
commitda9b3211231bb8b5e2aeaa60cb700d9fef61ac55
treef6c1f82a1b707f0710db8b479552fecdfec00117
parent347707d13bb9a4d49e395f49d0a8c9fe7e6c952b
[CA-46591] Prevents build_pre from overwriting xen_maxmem.

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.
ocaml/xenops/domain.ml