kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/6] Optimize vcpu->requests processing
@ 2012-07-09 17:05 Avi Kivity
  2012-07-09 17:05 ` [PATCH v3 1/6] KVM: Don't use KVM_REQ_PENDING_TIMER Avi Kivity
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Avi Kivity @ 2012-07-09 17:05 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: kvm

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(-)

-- 
1.7.11


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

end of thread, other threads:[~2012-09-24 12:13 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09 17:05 [PATCH v3 0/6] Optimize vcpu->requests processing Avi Kivity
2012-07-09 17:05 ` [PATCH v3 1/6] KVM: Don't use KVM_REQ_PENDING_TIMER Avi Kivity
2012-07-10  8:50   ` Gleb Natapov
2012-07-10  9:13     ` Avi Kivity
2012-07-09 17:05 ` [PATCH v3 2/6] KVM: Simplify KVM_REQ_EVENT/req_int_win handling Avi Kivity
2012-07-09 17:05 ` [PATCH v3 3/6] KVM: Move mmu reload out of line Avi Kivity
2012-07-10  3:57   ` Xiao Guangrong
2012-07-10  7:48     ` Avi Kivity
2012-07-09 17:05 ` [PATCH v3 4/6] KVM: Optimize vcpu->requests checking Avi Kivity
2012-07-09 17:05 ` [PATCH v3 5/6] KVM: Reorder KVM_REQ_EVENT to optimize processing Avi Kivity
2012-07-09 17:05 ` [PATCH v3 6/6] KVM: Clean up vcpu->requests == 0 processing Avi Kivity
2012-09-24  5:55 ` [PATCH v3 0/6] Optimize vcpu->requests processing Xiao Guangrong
2012-09-24  9:48   ` Avi Kivity
2012-09-24 10:19     ` Xiao Guangrong
2012-09-24 10:52       ` Avi Kivity
2012-09-24 11:16         ` Xiao Guangrong
2012-09-24 12:12           ` Avi Kivity

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).