KVM: ioapic: extract body of kvm_ioapic_set_irq
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Mar 2014 11:00:14 +0000 (12:00 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Mar 2014 09:20:16 +0000 (10:20 +0100)
commit44847dea79751e95665a439f8c63a65e51da8e1f
tree1329f713872d1034bfb2c1b80d483ffa0e72777c
parent0bc830b05c667218d703f2026ec866c49df974fc
KVM: ioapic: extract body of kvm_ioapic_set_irq

We will reuse it to process a nonzero IRR that is passed to KVM_SET_IRQCHIP.

Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/ioapic.c