qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] KVM: Dynamic sized memslots array
@ 2024-09-04 22:35 Peter Xu
  2024-09-04 22:35 ` [PATCH v2 1/4] KVM: Dynamic sized kvm " Peter Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Peter Xu @ 2024-09-04 22:35 UTC (permalink / raw)
  To: qemu-devel
  Cc: Vitaly Kuznetsov, Prasad Pandit, Julia Suvorova, peterx,
	Fabiano Rosas, Paolo Bonzini, Juraj Marcin, David Hildenbrand

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: 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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-09-06 12:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 22:35 [PATCH v2 0/4] KVM: Dynamic sized memslots array Peter Xu
2024-09-04 22:35 ` [PATCH v2 1/4] KVM: Dynamic sized kvm " Peter Xu
2024-09-05 15:32   ` Juraj Marcin
2024-09-05 15:59     ` Peter Xu
2024-09-06 10:54       ` Juraj Marcin
2024-09-06 12:30         ` Peter Xu
2024-09-04 22:35 ` [PATCH v2 2/4] KVM: Define KVM_MEMSLOTS_NUM_MAX_DEFAULT Peter Xu
2024-09-04 22:35 ` [PATCH v2 3/4] KVM: Rename KVMMemoryListener.nr_used_slots to nr_slots_used Peter Xu
2024-09-04 22:35 ` [PATCH v2 4/4] KVM: Rename KVMState->nr_slots to nr_slots_max Peter Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).