diff options
Diffstat (limited to 'virt/kvm/ioapic.c')
-rw-r--r-- | virt/kvm/ioapic.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index f2157a985a1f..2d682977ce82 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c | |||
@@ -193,7 +193,8 @@ static void update_handled_vectors(struct kvm_ioapic *ioapic) | |||
193 | smp_wmb(); | 193 | smp_wmb(); |
194 | } | 194 | } |
195 | 195 | ||
196 | void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) | 196 | void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap, |
197 | u32 *tmr) | ||
197 | { | 198 | { |
198 | struct kvm_ioapic *ioapic = vcpu->kvm->arch.vioapic; | 199 | struct kvm_ioapic *ioapic = vcpu->kvm->arch.vioapic; |
199 | union kvm_ioapic_redirect_entry *e; | 200 | union kvm_ioapic_redirect_entry *e; |
@@ -207,8 +208,13 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap) | |||
207 | kvm_irq_has_notifier(ioapic->kvm, KVM_IRQCHIP_IOAPIC, | 208 | kvm_irq_has_notifier(ioapic->kvm, KVM_IRQCHIP_IOAPIC, |
208 | index) || index == RTC_GSI)) { | 209 | index) || index == RTC_GSI)) { |
209 | if (kvm_apic_match_dest(vcpu, NULL, 0, | 210 | if (kvm_apic_match_dest(vcpu, NULL, 0, |
210 | e->fields.dest_id, e->fields.dest_mode)) | 211 | e->fields.dest_id, e->fields.dest_mode)) { |
211 | __set_bit(e->fields.vector, (unsigned long *)eoi_exit_bitmap); | 212 | __set_bit(e->fields.vector, |
213 | (unsigned long *)eoi_exit_bitmap); | ||
214 | if (e->fields.trig_mode == IOAPIC_LEVEL_TRIG) | ||
215 | __set_bit(e->fields.vector, | ||
216 | (unsigned long *)tmr); | ||
217 | } | ||
212 | } | 218 | } |
213 | } | 219 | } |
214 | spin_unlock(&ioapic->lock); | 220 | spin_unlock(&ioapic->lock); |