]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Pending interrupt may be delivered after INIT
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 30 Jun 2014 09:03:02 +0000 (12:03 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jul 2014 07:11:58 +0000 (09:11 +0200)
commit5eb0cb841de40ac4a2248db8dcba8f361486b42d
tree360ace13852bb120aa29f1743e1973de8ca50bce
parent359d8f0a68eb03c90596356e231ce6c6cd22903b
KVM: x86: Pending interrupt may be delivered after INIT

We encountered a scenario in which after an INIT is delivered, a pending
interrupt is delivered, although it was sent before the INIT.  As the SDM
states in section 10.4.7.1, the ISR and the IRR should be cleared after INIT as
KVM does.  This also means that pending interrupts should be cleared.  This
patch clears upon reset (and INIT) the pending interrupts; and at the same
occassion clears the pending exceptions, since they may cause a similar issue.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c