KVM: Merge kvm_ioapic_get_delivery_bitmask into kvm_get_intr_delivery_bitmask
authorSheng Yang <sheng@linux.intel.com>
Wed, 4 Mar 2009 05:33:02 +0000 (13:33 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:26 +0000 (11:48 +0300)
commit74a3a8f152053394a016518cc2f2fee216897fa4
tree96e2d2a9a8583836280063fde54323715ff8d90a
parent3f5e06f8799adca3e7e1bbafe1cd780a3e69f604
KVM: Merge kvm_ioapic_get_delivery_bitmask into kvm_get_intr_delivery_bitmask

Gleb fixed bitmap ops usage in kvm_ioapic_get_delivery_bitmask.

Sheng merged two functions, as well as fixed several issues in
kvm_get_intr_delivery_bitmask
1. deliver_bitmask is a bitmap rather than a unsigned long intereger.
2. Lowest priority target bitmap wrong calculated by mistake.
3. Prevent potential NULL reference.
4. Declaration in include/kvm_host.h caused powerpc compilation warning.
5. Add warning for guest broadcast interrupt with lowest priority delivery mode.
6. Removed duplicate bitmap clean up in caller of kvm_get_intr_delivery_bitmask.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/ioapic.c
virt/kvm/ioapic.h
virt/kvm/irq_comm.c