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)
commit5f7552d4a56c21a882c9854ac63c6eb73ca7d7c8
tree360ace13852bb120aa29f1743e1973de8ca50bce
parent80112c89ed872c725e7dc39ccf6c37d1a585e161
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
This page took 0.024108 seconds and 5 git commands to generate.