]> xenbits.xensource.com Git - libvirt.git/commit
hyperv: Map Limit to max_memory and VirtualQuantity to cur_balloon
authorLadi Prosek <lprosek@redhat.com>
Fri, 6 Oct 2017 06:47:35 +0000 (08:47 +0200)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 16 Oct 2017 14:29:32 +0000 (10:29 -0400)
commita765e3094d0a28c9f8426068898b2101f32dfee6
treecbc4e3a917df0f833c3143376fa9b92cffb81915
parent5ae2d9c25912d2f6e357e3d2d63aa0be7f35aa90
hyperv: Map Limit to max_memory and VirtualQuantity to cur_balloon

Hyper-V uses its own specific memory management so no mapping is going to
be perfect. However, it is more correct to map Limit to max_memory (it
really is the upper limit of what the VM may potentially use) and keep
cur_balloon equal to total_memory.

The typical value returned from Hyper-V in Limit is 1 TiB, which is not
really going to work if interpreted as "startup memory" to be ballooned
away later.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
src/hyperv/hyperv_driver.c