Michael pointed out that stroing and using the address of a RAMBlock
might not be safe. So let's rework the pbp handling, cleaning up the
code.
Did a sanity test with hugepage backing on x86.64.
We might want to have this in 4.1. I'll let Michael decide.
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
David Hildenbrand (3):
virtio-balloon: simplify deflate with pbp
virtio-balloon: Better names for offset variables in inflate/deflate
code
virtio-balloon: Rework pbp tracking data
hw/virtio/virtio-balloon.c | 90 ++++++++++++++----------------
include/hw/virtio/virtio-balloon.h | 15 ++++-
2 files changed, 53 insertions(+), 52 deletions(-)
--
2.21.0