• Avi Kivity's avatar
    KVM: ioapic: fix lost interrupt when changing a device's irq · 4fa6b9c5
    Avi Kivity authored
    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>
    4fa6b9c5
ioapic.c 9.75 KB