KVM: Call kvm_apic_match_dest() to check destination vcpu
authorYang Zhang <yang.z.zhang@Intel.com>
Sun, 7 Apr 2013 00:25:18 +0000 (08:25 +0800)
committerGleb Natapov <gleb@redhat.com>
Sun, 7 Apr 2013 10:55:49 +0000 (13:55 +0300)
commit44944d4d28948c71b110b09a2e924e505cd39e8b
tree6d0b96165c11414c98edd14501f016627687d7dd
parent99437a2782730ec8c7e6cfebb6143d00b091e4a8
KVM: Call kvm_apic_match_dest() to check destination vcpu

For a given vcpu, kvm_apic_match_dest() will tell you whether
the vcpu in the destination list quickly. Drop kvm_calculate_eoi_exitmap()
and use kvm_apic_match_dest() instead.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
virt/kvm/ioapic.c