aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/ioapic.c
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm/ioapic.c')
-rw-r--r--virt/kvm/ioapic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
index e85a2bcd2db1..1c986ac59ad6 100644
--- a/virt/kvm/ioapic.c
+++ b/virt/kvm/ioapic.c
@@ -293,20 +293,20 @@ void kvm_ioapic_set_irq(struct kvm_ioapic *ioapic, int irq, int level)
293 } 293 }
294} 294}
295 295
296static void __kvm_ioapic_update_eoi(struct kvm_ioapic *ioapic, int gsi, 296static void __kvm_ioapic_update_eoi(struct kvm_ioapic *ioapic, int pin,
297 int trigger_mode) 297 int trigger_mode)
298{ 298{
299 union ioapic_redir_entry *ent; 299 union ioapic_redir_entry *ent;
300 300
301 ent = &ioapic->redirtbl[gsi]; 301 ent = &ioapic->redirtbl[pin];
302 302
303 kvm_notify_acked_irq(ioapic->kvm, gsi); 303 kvm_notify_acked_irq(ioapic->kvm, KVM_IRQCHIP_IOAPIC, pin);
304 304
305 if (trigger_mode == IOAPIC_LEVEL_TRIG) { 305 if (trigger_mode == IOAPIC_LEVEL_TRIG) {
306 ASSERT(ent->fields.trig_mode == IOAPIC_LEVEL_TRIG); 306 ASSERT(ent->fields.trig_mode == IOAPIC_LEVEL_TRIG);
307 ent->fields.remote_irr = 0; 307 ent->fields.remote_irr = 0;
308 if (!ent->fields.mask && (ioapic->irr & (1 << gsi))) 308 if (!ent->fields.mask && (ioapic->irr & (1 << pin)))
309 ioapic_service(ioapic, gsi); 309 ioapic_service(ioapic, pin);
310 } 310 }
311} 311}
312 312