[PATCH 2/9] KVM: x86: store IOAPIC-handled vectors in each VCPU

2015-08-05 Thread Paolo Bonzini
We can reuse the algorithm that computes the EOI exit bitmap to figure out which vectors are handled by the IOAPIC. The only difference between the two is for edge-triggered interrupts other than IRQ8 that have no notifiers active; however, the IOAPIC does not have to do anything special for

[PATCH 2/9] KVM: x86: store IOAPIC-handled vectors in each VCPU

2015-08-05 Thread Paolo Bonzini
We can reuse the algorithm that computes the EOI exit bitmap to figure out which vectors are handled by the IOAPIC. The only difference between the two is for edge-triggered interrupts other than IRQ8 that have no notifiers active; however, the IOAPIC does not have to do anything special for