RE: [PATCH v3 1/1] Create debugfs file with hyper-v balloon usage information

From: Michael Kelley (LINUX)
Date: Tue Jul 12 2022 - 12:24:19 EST


From: Alexander Atanasov <alexander.atanasov@xxxxxxxxxxxxx> Sent: Monday, July 11, 2022 11:18 AM
>
> Allow the guest to know how much it is ballooned by the host.
> It is useful when debugging out of memory conditions.
>
> When host gets back memory from the guest it is accounted
> as used memory in the guest but the guest have no way to know
> how much it is actually ballooned.
>
> Expose current state, flags and max possible memory to the guest.
> While at it - fix a 10+ years old typo.
>
> Signed-off-by: Alexander Atanasov <alexander.atanasov@xxxxxxxxxxxxx>
> ---
> drivers/hv/hv_balloon.c | 135 ++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 129 insertions(+), 6 deletions(-)
>
> V1->V2:
> - Fix C&P errors
> V2->V3:
> - Move computation to a separate funcion
> - Remove ifdefs to reduce code clutter
>
> This patch addresses your suggestions. Once again, sorry i have missed
> your email reply last time.
>

Reviewed-by: Michael Kelley <mikelley@xxxxxxxxxxxxx>