[PATCH 1/2] Drivers: hv: hv_balloon: correctly handle val.freeram

2015-03-27 Thread Vitaly Kuznetsov
'Drivers: hv: hv_balloon: refuse to balloon below the floor' fix does not correctly handle the case when val.freeram < num_pages as val.freeram is __kernel_ulong_t and the 'val.freeram - num_pages' value will be a huge positive value instead of being negative. Usually host doesn't ask us to balloo

[PATCH 1/2] Drivers: hv: hv_balloon: correctly handle val.freeram

2015-03-31 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov 'Drivers: hv: hv_balloon: refuse to balloon below the floor' fix does not correctly handle the case when val.freeram < num_pages as val.freeram is __kernel_ulong_t and the 'val.freeram - num_pages' value will be a huge positive value instead of being negative. Usually host