Skip to content

vhost: memslot handling improvements

David Hildenbrand qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesIn review
  2. v33 patches 5 repliesSuperseded
  3. v23 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches19 repliesSuperseded

Changes in v4 from the cover letter

- Add RBs
- "vhost: Rework memslot filtering and fix "used_memslot" tracking" -- Fix check for free memslots (> 1 vs > 0)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vhost: Rework memslot filtering and fix "used_memslot" trackinghw/virtio/vhost-user.c hw/virtio/vhost.c include/hw/virtio/vhost-backend.h+52 -161 reply
2/3vhost: Remove vhost_backend_can_merge() callbackhw/virtio/vhost-user.c hw/virtio/vhost-vdpa.c hw/virtio/vhost.c +1 more+1 -240 replies
3/3softmmu/physmem: Fixup qemu_ram_block_from_host() documentationinclude/exec/cpu-common.h softmmu/physmem.c+15 -171 reply

Reviews trailers per patch

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

PatchIgor MammedovPeter XuStefan HajnocziPhilippe Mathieu-Daudé
1/3A-b R-b
2/3R-b A-b R-b A-b
3/3A-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/3] vhost: memslot handling improvements

Following up on my previous work to make virtio-mem consume multiple memslots dynamically [1] that requires precise accounting between used vs. reserved memslots, I realized that vhost makes this extra hard by filtering out some memory region sections (so they don't consume a memslot) in the vhost-user case, which messes up the whole memslot accounting.

This series fixes what I found to be broken and prepares for more work on [1]. Further, it cleanes up the merge checks that I consider unnecessary.

[1] https://lkml.kernel.org/r/[email protected]

Cc "Michael S. Tsirkin" <[email protected]>
Cc Stefan Hajnoczi <[email protected]>
Cc Igor Mammedov <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Peter Xu <[email protected]>
Cc "Philippe Mathieu-Daudé" <[email protected]>

v3 -> v4:
- Add RBs
- "vhost: Rework memslot filtering and fix "used_memslot" tracking" -- Fix check for free memslots (> 1 vs > 0)

v2 -> v3:
- Add ACKs
- "softmmu/physmem: Fixup qemu_ram_block_from_host() documentation" -- Fix typo in description

v1 -> v2:
- "vhost: Rework memslot filtering and fix "used_memslot" tracking" -- New approach: keep filtering, but make filtering less generic and track separately. This should keep any existing setups working.
- "softmmu/physmem: Fixup qemu_ram_block_from_host() documentation" -- As requested by Igor

David Hildenbrand (3):
vhost: Rework memslot filtering and fix "used_memslot" tracking
vhost: Remove vhost_backend_can_merge() callback softmmu/physmem: Fixup qemu_ram_block_from_host() documentation

 hw/virtio/vhost-user.c            | 21 ++---------
 hw/virtio/vhost-vdpa.c            |  1 -
 hw/virtio/vhost.c                 | 62 ++++++++++++++++++++++++-------
 include/exec/cpu-common.h         | 15 ++++++++
 include/hw/virtio/vhost-backend.h |  9 +----
 softmmu/physmem.c                 | 17 ---------
 6 files changed, 68 insertions(+), 57 deletions(-)
Signature · 1 line
2.40.1