From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v3 0/6] Optimize vcpu->requests processing Date: Mon, 9 Jul 2012 20:05:39 +0300 Message-ID: <1341853545-3023-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60375 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932Ab2GIRFv (ORCPT ); Mon, 9 Jul 2012 13:05:51 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q69H5o9I027218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 9 Jul 2012 13:05:50 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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