Some fixes for VIRTIO_BALLOON_F_FREE_PAGE_HINT. First issue was reported by Alexander Bulekov [1], the other ones were discovered by me when digging into the details.
We keep finding more issues, let's see how we'll proceed with this feature long-term. These patches can be backported to stable QEMU. [1] https://lkml.kernel.org/r/20200511044121.eihns2tdimdzg...@mozz.bu.edu v1 -> v2: - "virtio-balloon: fix free page hinting without an iothread" -- Drop initialization to 0/false -- Reformat one condition - cc stable David Hildenbrand (3): virtio-balloon: fix free page hinting without an iothread virtio-balloon: fix free page hinting check on unrealize virtio-balloon: unref the iothread when unrealizing hw/virtio/virtio-balloon.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) -- 2.25.4