]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: fix i8259 reset irq acking
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 14 Aug 2008 23:53:25 +0000 (20:53 -0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:19 +0000 (10:15 +0200)
commit462603705bcbf1058ce6c8cace35a646e1c17c1c
tree19e12ebc433e51835e8065eebce515472e7bbafc
parent8d7fb4e6fd6d2041cda1bc2058a206b517a2a7cc
KVM: fix i8259 reset irq acking

The irq ack during pic reset has three problems:

- Ignores slave/master PIC, using gsi 0-8 for both.
- Generates an ACK even if the APIC is in control.
- Depends upon IMR being clear, which is broken if the irq was masked
at the time it was generated.

The last one causes the BIOS to hang after the first reboot of
Windows installation, since PIT interrupts stop.

[avi: fix check whether pic interrupts are seen by cpu]

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/i8259.c