Re: [PATCH v1 2/2] virtio-balloon: improve update_balloon_size_func

From: Cornelia Huck
Date: Thu Jan 03 2019 - 04:42:50 EST


On Thu, 3 Jan 2019 13:31:02 +0800
Wei Wang <wei.w.wang@xxxxxxxxx> wrote:

> There is no need to update the balloon actual register when there is no
> ballooning request. This patch avoids update_balloon_size when diff is 0.
>
> Signed-off-by: Wei Wang <wei.w.wang@xxxxxxxxx>
> ---
> drivers/virtio/virtio_balloon.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)

Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>