diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-12-17 14:21:40 +0800 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 18:01:19 +0200 |
commit | 5736199afba8a8bb60a1ea282ab72857d6b16400 (patch) | |
tree | ff7d49be0447f158aa821254c3f90d97988985a8 /arch/x86/kvm/irq.c | |
parent | 0eb8f4984824b8a811d44963995133f47813330a (diff) | |
download | op-kernel-dev-5736199afba8a8bb60a1ea282ab72857d6b16400.zip op-kernel-dev-5736199afba8a8bb60a1ea282ab72857d6b16400.tar.gz |
KVM: Move kvm_vcpu_kick() to x86.c
Moving kvm_vcpu_kick() to x86.c. Since it should be
common for all archs, put its declarations in <linux/kvm_host.h>
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/irq.c')
-rw-r--r-- | arch/x86/kvm/irq.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/x86/kvm/irq.c b/arch/x86/kvm/irq.c index 07a09aa..e571475 100644 --- a/arch/x86/kvm/irq.c +++ b/arch/x86/kvm/irq.c @@ -63,26 +63,6 @@ int kvm_cpu_get_interrupt(struct kvm_vcpu *v) } EXPORT_SYMBOL_GPL(kvm_cpu_get_interrupt); -static void vcpu_kick_intr(void *info) -{ -#ifdef DEBUG - struct kvm_vcpu *vcpu = (struct kvm_vcpu *)info; - printk(KERN_DEBUG "vcpu_kick_intr %p \n", vcpu); -#endif -} - -void kvm_vcpu_kick(struct kvm_vcpu *vcpu) -{ - int ipi_pcpu = vcpu->cpu; - - if (waitqueue_active(&vcpu->wq)) { - wake_up_interruptible(&vcpu->wq); - ++vcpu->stat.halt_wakeup; - } - if (vcpu->guest_mode) - smp_call_function_single(ipi_pcpu, vcpu_kick_intr, vcpu, 0, 0); -} - void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu) { kvm_inject_apic_timer_irqs(vcpu); |