xen: actually release memory when shrinking domain
authorDan Magenheimer <[email protected]>
Thu, 22 Jan 2009 22:36:08 +0000 (14:36 -0800)
committerIngo Molnar <[email protected]>
Thu, 22 Jan 2009 22:41:44 +0000 (23:41 +0100)
commit1058a75f07b9bb8323fb5197be5526220f8b75cf
tree3dcdc077c2c045043629b1999a40f8e1f13996d5
parent066941bd4eeb159307a5d7d795100d0887c00442
xen: actually release memory when shrinking domain

Fix this:

> It appears that in the upstream balloon driver,
> the call to HYPERVISOR_update_va_mapping is missing
> from decrease_reservation.  I think as a result,
> the balloon driver is eating memory but not
> releasing it to Xen, thus rendering the balloon
> driver essentially useless.  (Can be observed via xentop.)

Signed-off-by: Dan Magenheimer <[email protected]>
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
drivers/xen/balloon.c