qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 0/4] KVM: Dynamic sized memslots array


From: Peter Xu
Subject: [PATCH v2 0/4] KVM: Dynamic sized memslots array
Date: Wed, 4 Sep 2024 18:35:06 -0400

v2:
- Reordered patches, make the fix patch cc:stable
- s/NUM/NR/ for the newly introduced macros [DavidH]
- Added kvm_slots_double() wrapper [DavidH]

v1: 20240904191635.3045606-1-peterx@redhat.com">https://lore.kernel.org/r/20240904191635.3045606-1-peterx@redhat.com

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      | 111 +++++++++++++++++++++++++++++++--------
 accel/kvm/trace-events   |   1 +
 3 files changed, 93 insertions(+), 26 deletions(-)

-- 
2.45.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]