]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: inject ExtINT interrupt before APIC interrupts
authorGleb Natapov <gleb@redhat.com>
Mon, 10 Dec 2012 12:05:55 +0000 (14:05 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 14 Dec 2012 01:05:21 +0000 (23:05 -0200)
commiteb12e663309aacba7091cdc05c20bf413c110b91
tree78324a59e921b1d3f1ed48bbdc6f1bf7fb96f147
parentf6009f3d1af869be843e516f60b15f114fa40159
KVM: inject ExtINT interrupt before APIC interrupts

According to Intel SDM Volume 3 Section 10.8.1 "Interrupt Handling with
the Pentium 4 and Intel Xeon Processors" and Section 10.8.2 "Interrupt
Handling with the P6 Family and Pentium Processors" ExtINT interrupts are
sent directly to the processor core for handling. Currently KVM checks
APIC before it considers ExtINT interrupts for injection which is
backwards from the spec. Make code behave according to the SDM.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Acked-by: "Zhang, Yang Z" <yang.z.zhang@intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/i8259.c
arch/x86/kvm/irq.c