KVM: VMX: Add the deliver posted interrupt algorithm
authorYang Zhang <yang.z.zhang@Intel.com>
Thu, 11 Apr 2013 11:25:15 +0000 (19:25 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 16 Apr 2013 19:32:40 +0000 (16:32 -0300)
commita20ed54d6e470bf0d28921b7aadb6ca0da0ff0c3
tree14b3e8c9b4e686ec321967f5b517571e417b83a1
parentcf9e65b773394c5ad8fa7455c43268bc8ec2109f
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
virt/kvm/kvm_main.c