hypervisors: start instances with max available mem
authorGuido Trotter <ultrotter@google.com>
Mon, 9 Jan 2012 17:20:20 +0000 (17:20 +0000)
committerGuido Trotter <ultrotter@google.com>
Fri, 20 Jan 2012 09:44:21 +0000 (09:44 +0000)
commit61eb1a469fd10ca0d059d8502fc39dd0c9b09a61
treeed3cba2fcf3940a861496c26d9c6bd418727d3ca
parent5d1ab3a6458c0bd65ba0bfa0128afce8d6d14494
hypervisors: start instances with max available mem

If we have available more than MINMEM but less than MAXMEM, start a new
instance with that value, rather than MAXMEM.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/hypervisor/hv_base.py
lib/hypervisor/hv_fake.py
lib/hypervisor/hv_kvm.py
lib/hypervisor/hv_xen.py