Skip to content

KVM: Dynamic sized memslots array

Peter Xu qemu-devel 4 versions – Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 8 repliesApplied
  2. v34 patches 3 repliesSuperseded
  3. v24 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches14 repliesSuperseded

Changes in v4 from the cover letter

- Remove restriction on kvm reports smaller than the default alloc size (KVM_MEMSLOTS_NR_ALLOC_DEFAULT) [Fabiano]

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: Dynamic sized kvm memslots arrayaccel/kvm/kvm-all.c accel/kvm/trace-events include/sysemu/kvm_int.h+74 -156 replies
2/4KVM: Define KVM_MEMSLOTS_NUM_MAX_DEFAULTaccel/kvm/kvm-all.c+3 -10 replies
3/4KVM: Rename KVMMemoryListener.nr_used_slots to nr_slots_usedaccel/kvm/kvm-all.c include/sysemu/kvm_int.h+4 -40 replies
4/4KVM: Rename KVMState->nr_slots to nr_slots_maxaccel/kvm/kvm-all.c include/sysemu/kvm_int.h+8 -80 replies

Reviews trailers per patch

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

PatchDavid HildenbrandZhiyi GuoFabiano Rosas
1/4A-b T-b R-b
2/4R-b
3/4R-b
4/4R-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 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] KVM: Dynamic sized memslots array

v4:
- Remove restriction on kvm reports smaller than the default alloc size (KVM_MEMSLOTS_NR_ALLOC_DEFAULT) [Fabiano]

v1: https://lore.kernel.org/r/[email protected]
v2: https://lore.kernel.org/r/[email protected]
v3: https://lore.kernel.org/r/[email protected]

This series make KVM memslots to be allocated dynamically in QEMU. It fixes a migration performance regression that I observed, reducing precopy dirty sync process from ~86ms to ~3ms each time.

Patch 1 is the fix to the problem, while the rest three patches are cleanups.

Thanks,

Peter Xu (4):
KVM: Dynamic sized kvm memslots array
KVM: Define KVM_MEMSLOTS_NUM_MAX_DEFAULT
KVM: Rename KVMMemoryListener.nr_used_slots to nr_slots_used
KVM: Rename KVMState->nr_slots to nr_slots_max

 include/sysemu/kvm_int.h |   7 +--
 accel/kvm/kvm-all.c      | 105 ++++++++++++++++++++++++++++++---------
 accel/kvm/trace-events   |   1 +
 3 files changed, 87 insertions(+), 26 deletions(-)
Signature · 1 line
2.45.0