From: Avi Kivity Date: Tue, 17 Jun 2008 22:36:36 +0000 (-0700) Subject: KVM: ioapic: fix lost interrupt when changing a device's irq X-Git-Tag: v2.6.26-rc8~3^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fa6b9c5dc4134bdeac341d731a87783cc11ca10;p=pandora-kernel.git 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: Avi Kivity --- Reading git-diff-tree failed