commit | 64aa47bfc45323040d5db8f30cbd6851f2606c7d | [log] [tgz] |
---|---|---|
author | Radim Krčmář <rkrcmar@redhat.com> | Tue Jul 12 22:09:18 2016 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Jul 14 09:03:51 2016 +0200 |
tree | d925b3525c76fde3eab4e3f9b120b2613152945c | |
parent | 757883de41eca292765578ef87c4f49453529bb2 [diff] |
KVM: x86: add kvm_apic_map_get_dest_lapic kvm_irq_delivery_to_apic_fast and kvm_intr_is_single_vcpu_fast both compute the interrupt destination. Factor the code. 'struct kvm_lapic **dst = NULL' had to be added to silence GCC. GCC might complain about potential NULL access in the future, because it missed conditions that avoided uninitialized uses of dst. Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>