diff options
author | Yang Zhang <yang.z.zhang@Intel.com> | 2013-04-11 13:25:15 +0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-04-16 21:32:40 +0200 |
commit | a20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3 (patch) | |
tree | 14b3e8c9b4e686ec321967f5b517571e417b83a1 /virt/kvm | |
parent | KVM: Set TMR when programming ioapic entry (diff) | |
download | linux-a20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3.tar.xz linux-a20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3.zip |
KVM: VMX: Add the deliver posted interrupt algorithm
Only deliver the posted interrupt when target vcpu is running
and there is no previous interrupt pending in pir.
Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 65a9e0716a8d..aaac1a7a9ea8 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1671,6 +1671,7 @@ void kvm_vcpu_kick(struct kvm_vcpu *vcpu) smp_send_reschedule(cpu); put_cpu(); } +EXPORT_SYMBOL_GPL(kvm_vcpu_kick); #endif /* !CONFIG_S390 */ void kvm_resched(struct kvm_vcpu *vcpu) |