Skip to content

virtio-balloon: Free page hinting clean-ups

Alexander Duyck qemu-devel virtio-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 3 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Changes in v3 from the cover letter

Added Acked-by for patch 2
Added comment to patch 2 about it fixing Coverity issue Rebased on latest pull of QEMU

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio-balloon: Prevent guest from starting a report when we didn't request onehw/virtio/virtio-balloon.c+2 -10 replies
2/3virtio-balloon: Add locking to prevent possible race when starting hintinghw/virtio/virtio-balloon.c+4 -00 replies
3/3virtio-balloon: Replace free page hinting references to 'report' with 'hint'hw/virtio/virtio-balloon.c include/hw/virtio/virtio-balloon.h+48 -480 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 QEMU 0/3] virtio-balloon: Free page hinting clean-ups

This series contains a couple minor cleanups related to free page hinting.

The first patch addresses what I believe is a possible issue in which the driver could potentially force the device out of the stop state and back into the running state if it were to replay an earlier virtqueue element containing the same ID it had submitted earlier.

The second patch takes care of a possible race due to a mutex lock not being used when starting the hinting from the device-side.

The final patch takes care of renaming various hinting objects that were using "reporting" in the name to try and clarify which objects are for free page reporting and which are for free page hinting.

Changes from v1:
Split first patch into two patches as each addresses a separate issue. Added acked-by for first patch.

Changes from v2:
Added Acked-by for patch 2
Added comment to patch 2 about it fixing Coverity issue Rebased on latest pull of QEMU

---

Alexander Duyck (3):
virtio-balloon: Prevent guest from starting a report when we didn't request one
virtio-balloon: Add locking to prevent possible race when starting hinting
virtio-balloon: Replace free page hinting references to 'report' with 'hint'

 hw/virtio/virtio-balloon.c         |   79 +++++++++++++++++++-----------------
 include/hw/virtio/virtio-balloon.h |   20 +++++----
 2 files changed, 52 insertions(+), 47 deletions(-)

--

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]