virtio-balloon: Simplify deflate with pbp
commit2c743c85220e99910536ba9db590e339853716c0
authorDavid Hildenbrand <david@redhat.com>
Mon, 22 Jul 2019 13:41:05 +0000 (22 15:41 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 1 Oct 2019 21:58:28 +0000 (1 16:58 -0500)
tree09868cb023771db8bc543584e406979c23eae661
parent04e35fe3c4ab0e37854348f5742a29fb5de99c97
virtio-balloon: Simplify deflate with pbp

Let's simplify this - the case we are optimizing for is very hard to
trigger and not worth the effort. If we're switching from inflation to
deflation, let's reset the pbp.

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190722134108.22151-4-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 2ffc49eea1bbd454913a88a0ad872c2649b36950)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/virtio-balloon.c