diff options
author | Yang Zhang <yang.z.zhang@Intel.com> | 2013-04-11 19:25:15 +0800 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-04-16 16:32:40 -0300 |
commit | a20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3 (patch) | |
tree | 14b3e8c9b4e686ec321967f5b517571e417b83a1 /virt | |
parent | cf9e65b773394c5ad8fa7455c43268bc8ec2109f (diff) | |
download | linux-3.10-a20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3.tar.gz linux-3.10-a20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3.tar.bz2 linux-3.10-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')
-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 65a9e0716a8..aaac1a7a9ea 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) |