virtio-balloon: Simplify deflate with pbp
commit2ffc49eea1bbd454913a88a0ad872c2649b36950
authorDavid Hildenbrand <david@redhat.com>
Mon, 22 Jul 2019 13:41:05 +0000 (22 15:41 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Jul 2019 11:57:56 +0000 (25 07:57 -0400)
treec911c3f2ec42dbd7078a64cea63d20fa1bf9dd42
parent483f13524bb2a08b7ff6a7560b846564ed3b0c33
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>
hw/virtio/virtio-balloon.c