diff options
| author | Denis V. Lunev <den@openvz.org> | 2026-06-24 16:08:46 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-19 06:38:44 -0400 |
| commit | 198eda395067b56ee605de076f0519620f4e5d90 (patch) | |
| tree | 5256afc7bc72703e30bc3b02ebfe93c5877ddfb8 /tools/perf/scripts/python/netdev-times.py | |
| parent | 7e17eef04600c399c7e0f5ce765da5cf9d40d8e1 (diff) | |
virtio_balloon: warn on failed buffer add in tell_host()
tell_host() ignores the return value of virtqueue_add_outbuf() and goes
on to kick the queue and wait_event() for the host's ack. The comment
claims "We should always be able to add one buffer to an empty queue",
but that does not hold once the virtqueue has been broken (e.g. on
device shutdown): the add then fails with -EIO and the following
wait_event() would block forever on a buffer the host can never return.
Warn and bail out on failure, mirroring virtballoon_free_page_report().
Suggested-by: David Hildenbrand <david@kernel.org>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260624140846.2616797-5-den@openvz.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
