Skip to content

Optimize vcpu->requests processing

Avi Kivity kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest6 patches 10 repliesIn review

Changes in v3 from the cover letter

new approach using for_each_set_bit(), as the previous one might have skipped a bit.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6KVM: Don't use KVM_REQ_PENDING_TIMERarch/x86/kvm/timer.c arch/x86/kvm/x86.c+2 -72 replies
2/6KVM: Simplify KVM_REQ_EVENT/req_int_win handlingarch/x86/kvm/x86.c+16 -140 replies
3/6KVM: Move mmu reload out of linearch/x86/kvm/mmu.c arch/x86/kvm/svm.c arch/x86/kvm/x86.c+11 -72 replies
4/6KVM: Optimize vcpu->requests checkingarch/x86/kvm/x86.c+39 -230 replies
5/6KVM: Reorder KVM_REQ_EVENT to optimize processinginclude/linux/kvm_host.h+7 -70 replies
6/6KVM: Clean up vcpu->requests == 0 processingarch/x86/kvm/x86.c+72 -760 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/6] Optimize vcpu->requests processing

Currently, any time a request bit is set (not too uncommon) we check all of them. This patchset optimizes the process slightly by skipping over unset bits using for_each_set_bit().

v3:
new approach using for_each_set_bit(), as the previous one might have skipped a bit.

Avi Kivity (6):
KVM: Don't use KVM_REQ_PENDING_TIMER
KVM: Simplify KVM_REQ_EVENT/req_int_win handling
KVM: Move mmu reload out of line
KVM: Optimize vcpu->requests checking
KVM: Reorder KVM_REQ_EVENT to optimize processing
KVM: Clean up vcpu->requests == 0 processing

 arch/x86/kvm/mmu.c       |   4 +-
 arch/x86/kvm/svm.c       |   1 +
 arch/x86/kvm/timer.c     |   8 +--
 arch/x86/kvm/x86.c       | 142 ++++++++++++++++++++++++++---------------------
 include/linux/kvm_host.h |  14 ++---
 5 files changed, 91 insertions(+), 78 deletions(-)
Signature · 1 line
1.7.11