diff options
author | Yang Zhang <yang.z.zhang@Intel.com> | 2013-04-11 07:25:15 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2013-04-16 15:32:40 -0400 |
commit | a20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3 (patch) | |
tree | 14b3e8c9b4e686ec321967f5b517571e417b83a1 /virt/kvm/kvm_main.c | |
parent | cf9e65b773394c5ad8fa7455c43268bc8ec2109f (diff) |
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/kvm_main.c')
-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) | |||
1671 | smp_send_reschedule(cpu); | 1671 | smp_send_reschedule(cpu); |
1672 | put_cpu(); | 1672 | put_cpu(); |
1673 | } | 1673 | } |
1674 | EXPORT_SYMBOL_GPL(kvm_vcpu_kick); | ||
1674 | #endif /* !CONFIG_S390 */ | 1675 | #endif /* !CONFIG_S390 */ |
1675 | 1676 | ||
1676 | void kvm_resched(struct kvm_vcpu *vcpu) | 1677 | void kvm_resched(struct kvm_vcpu *vcpu) |