Skip to content

kvm: memslots lookup optimization

Igor Mammedov kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5kvm: update_memslots: drop not needed check for the same number of pagesvirt/kvm/kvm_main.c+13 -150 replies
2/5kvm: update_memslots: drop not needed check for the same slotvirt/kvm/kvm_main.c+11 -140 replies
3/5kvm: search_memslots: add simple LRU memslot cachinginclude/linux/kvm_host.h+10 -20 replies
4/5kvm: change memslot sorting rule from size to GFNvirt/kvm/kvm_main.c+11 -60 replies
5/5kvm: optimize GFN to memslot lookup with large slots amountinclude/linux/kvm_host.h virt/kvm/kvm_main.c+29 -133 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchRadim Krčmář
1/5
2/5
3/5
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] kvm: memslots lookup optimization

Series speed-ups GFN to memslot lookup time by:
* introducing LRU cache, which improves looukup time for same slot workload (typically boot time of Windows and Linux guest)
* switching to binary search for GFN to memslot lookup, improving lookup time with large amount of memory slots

Igor Mammedov (5):
kvm: update_memslots: drop not needed check for the same number of
pages
kvm: update_memslots: drop not needed check for the same slot
kvm: search_memslots: add simple LRU memslot caching
kvm: change memslot sorting rule from size to GFN
kvm: optimize GFN to memslot lookup with large slots amount

 include/linux/kvm_host.h | 28 +++++++++++++++++++++++-----
 virt/kvm/kvm_main.c      | 46 ++++++++++++++++++++++++++--------------------
 2 files changed, 49 insertions(+), 25 deletions(-)
Signature · 1 line
1.8.3.1