Skip to content

virtio-balloon: some improvements

Wei Wang linux-mm lkml virtio-dev virtualization 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v3 posting 2/22 patches 15 repliesSuperseded
  3. v3 posting 1/20 of 2 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v22 patches22 repliesSuperseded

Changes in v4 from the cover letter

- use kzalloc to allocate the vb struct so that we don't need to zero initialize each field one by one later;
- also remove vb->shrinker.batch = 0, which is not needed now. v2->v3:
- shrink the balloon pages according to the amount requested by the claimer, instead of using a user specified number;

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio-balloon: remove BUG() in init_vqsdrivers/virtio/virtio_balloon.c+7 -30 replies
1/3virtio-balloon: remove BUG() in init_vqsdrivers/virtio/virtio_balloon.c+7 -30 replies
2/3virtio-balloon: kzalloc the vb structdrivers/virtio/virtio_balloon.c+1 -40 replies
2/3virtio-balloon: kzalloc the vb structdrivers/virtio/virtio_balloon.c+1 -40 replies
3/3virtio_balloon: replace oom notifier with shrinkerdrivers/virtio/virtio_balloon.c+59 -510 replies
3/3virtio_balloon: replace oom notifier with shrinkerdrivers/virtio/virtio_balloon.c+59 -510 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] virtio-balloon: some improvements

This series is split from the "Virtio-balloon: support free page reporting" series to make some improvements.

ChangeLog:
v3->v4:
- use kzalloc to allocate the vb struct so that we don't need to zero initialize each field one by one later;
- also remove vb->shrinker.batch = 0, which is not needed now. v2->v3:
- shrink the balloon pages according to the amount requested by the claimer, instead of using a user specified number;
v1->v2:
- register the shrinker when VIRTIO_BALLOON_F_DEFLATE_ON_OOM is negotiated.

Wei Wang (3):
virtio-balloon: remove BUG() in init_vqs
virtio-balloon: kzalloc the vb struct
virtio_balloon: replace oom notifier with shrinker

 drivers/virtio/virtio_balloon.c | 125 +++++++++++++++++++++-------------------
 1 file changed, 67 insertions(+), 58 deletions(-)
Signature · 1 line
2.7.4