Skip to content
Commit 4fa6b9c5 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: ioapic: fix lost interrupt when changing a device's irq



The ioapic acknowledge path translates interrupt vectors to irqs.  It
currently uses a first match algorithm, stopping when it finds the first
redirection table entry containing the vector.  That fails however if the
guest changes the irq to a different line, leaving the old redirection table
entry in place (though masked).  Result is interrupts not making it to the
guest.

Fix by always scanning the entire redirection table.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 6bf6a953
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment