KVM: APIC: add helper func to remove duplicate code in kvm_pv_send_ipi
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 9 Nov 2019 09:46:49 +0000 (17:46 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 Nov 2019 10:44:03 +0000 (11:44 +0100)
commit1a686237d94b8a4bab9ce16ffd3e2208370d7695
treeed55e901a13301beaaef9298426c4c33e72f71c6
parent5b4ce93a8fe759e2d6b2ee05765cd5a3b4b6a2f1
KVM: APIC: add helper func to remove duplicate code in kvm_pv_send_ipi

There are some duplicate code in kvm_pv_send_ipi when deal with ipi
bitmap. Add helper func to remove it, and eliminate odd out label,
get rid of unnecessary kvm_lapic_irq field init and so on.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c