KVM: ioapic: merge ioapic_deliver into ioapic_service
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Mar 2014 10:51:29 +0000 (11:51 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Mar 2014 09:19:48 +0000 (10:19 +0100)
commit0b10a1c87a2b0fb459baaefba9cb163dbb8d3344
tree04ad989ba4d94f0c86e971f8262c62027f718a8e
parent36c95494609cd6d2541c08e806b4d6bc401bc53f
KVM: ioapic: merge ioapic_deliver into ioapic_service

Commonize the handling of masking, which was absent for kvm_ioapic_set_irq.
Setting remote_irr does not need a separate function either, and merging
the two functions avoids confusion.

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