summary refs log tree commit diff stats
path: root/tests/qemu-iotests/common.pattern
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2019-07-25 07:54:25 -0400
committerMichael S. Tsirkin <mst@redhat.com>2019-07-25 11:19:25 -0400
commit1b47b37c33ec01ae1efc527f4c97f97f93723bc4 (patch)
treec70b28a0172c77bafd665a70b5f0c901c9380bb4 /tests/qemu-iotests/common.pattern
parent9a7ca8a7c920360db9dcaf616ca6f1440c025043 (diff)
downloadfocaccia-qemu-1b47b37c33ec01ae1efc527f4c97f97f93723bc4.tar.gz
focaccia-qemu-1b47b37c33ec01ae1efc527f4c97f97f93723bc4.zip
virtio-balloon: free pbp more aggressively
Previous patches switched to a temporary pbp but that does not go far
enough: after device uses a buffer, guest is free to reuse it, so
tracking the page and freeing it later is wrong.

Free and reset the pbp after we push each element.

Fixes: ed48c59875b6 ("virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size")
Cc: qemu-stable@nongnu.org #v4.0.0
Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/common.pattern')
0 files changed, 0 insertions, 0 deletions