Drivers: hv: hv_balloon: refuse to balloon below the floor
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sat, 28 Feb 2015 19:39:00 +0000 (11:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 03:31:47 +0000 (19:31 -0800)
commit530d15b907038735d4cb008dc5caae7ce4dfc985
treed2aabc77cd6e1da385959ddc4d2910c59eb39520
parent549fd280b145e2154db5a7d06981d041f8bbf597
Drivers: hv: hv_balloon: refuse to balloon below the floor

When host asks us to balloon up we need to be sure we're not committing suicide
by overballooning. Use already existent 'floor' metric as our lowest possible
value for free ram.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_balloon.c