qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] virtio-balloon: stats vq fixes
@ 2016-09-07 15:20 Ladi Prosek
  2016-09-07 15:20 ` [Qemu-devel] [PATCH 1/3] virtio-balloon: discard virtqueue element on reset Ladi Prosek
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Ladi Prosek @ 2016-09-07 15:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: mst, rkagan, stefanha, lprosek

This is another series that aims to fix issues with the balloon stats
queue, heavily inspired by previous patches posted by Stefan and Roman.

Stefan Hajnoczi (1):
  virtio: add virtqueue_rewind()

Ladi Prosek (2):
  virtio-balloon: discard virtqueue element on reset
  virtio-balloon: fix stats vq migration

The first patch addresses the "inuse leak" issue which was discovered
recently.

The virtqueue_rewind() implementation is reposted verbatim. However,
it is called from the set_status callback, same as in Roman's patch.
Doing it in balloon_stats_poll_cb (Stefan's patch) is potentially
problematic because the guest may push another buffer to the queue
before the timer fires, so we could still leak a virtqueue slot.
Also, we want to call the full-blown virtio_balloon_receive_stats and
not manually reconstruct only some pieces of the state. It is not
necessary to check balloon_stats_supported. Pushing buffers without
negotiating stats support would be a driver bug. The common codepath
does not check it either.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-09-12  9:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-07 15:20 [Qemu-devel] [PATCH 0/3] virtio-balloon: stats vq fixes Ladi Prosek
2016-09-07 15:20 ` [Qemu-devel] [PATCH 1/3] virtio-balloon: discard virtqueue element on reset Ladi Prosek
2016-09-07 17:48   ` Stefan Hajnoczi
2016-09-08  6:38   ` Roman Kagan
2016-09-07 15:20 ` [Qemu-devel] [PATCH 2/3] virtio: add virtqueue_rewind() Ladi Prosek
2016-09-08  6:44   ` Roman Kagan
2016-09-08  7:30     ` Ladi Prosek
2016-09-12  9:20       ` Stefan Hajnoczi
2016-09-07 15:20 ` [Qemu-devel] [PATCH 3/3] virtio-balloon: fix stats vq migration Ladi Prosek
2016-09-07 18:02   ` Stefan Hajnoczi
2016-09-08  6:47   ` Roman Kagan
2016-09-07 18:02 ` [Qemu-devel] [PATCH 0/3] virtio-balloon: stats vq fixes Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).