From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nikunj A. Dadhania" Subject: [RFC PATCH v1 4/5] KVM: get kvm_kick_vcpu out for pv_flush Date: Fri, 27 Apr 2012 21:56:36 +0530 Message-ID: <20120427162446.27082.8215.stgit@abhimanyu> References: <20120427161727.27082.43096.stgit@abhimanyu> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: jeremy@goop.org, mtosatti@redhat.com, kvm@vger.kernel.org, x86@kernel.org, vatsa@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, avi@redhat.com, hpa@zytor.com To: peterz@infradead.org, mingo@elte.hu Return-path: In-Reply-To: <20120427161727.27082.43096.stgit@abhimanyu> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Get kvm_kick_cpu out of CONFIG_PARAVIRT_SPINLOCK define Signed-off-by: Nikunj A. Dadhania --- arch/x86/kernel/kvm.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 66db54e..5943285 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -487,6 +487,15 @@ static __init int activate_jump_labels(void) } arch_initcall(activate_jump_labels); +/* Kick a cpu */ +void kvm_kick_cpu(int cpu) +{ + int apicid; + + apicid = per_cpu(x86_cpu_to_apicid, cpu); + kvm_hypercall1(KVM_HC_KICK_CPU, apicid); +} + #ifdef CONFIG_PARAVIRT_SPINLOCKS enum kvm_contention_stat { @@ -695,15 +704,6 @@ out: } PV_CALLEE_SAVE_REGS_THUNK(kvm_lock_spinning); -/* Kick a cpu by its apicid*/ -static inline void kvm_kick_cpu(int cpu) -{ - int apicid; - - apicid = per_cpu(x86_cpu_to_apicid, cpu); - kvm_hypercall1(KVM_HC_KICK_CPU, apicid); -} - /* Kick vcpu waiting on @lock->head to reach value @ticket */ static void kvm_unlock_kick(struct arch_spinlock *lock, __ticket_t ticket) {