]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: fix NMI window after iret
authorRadim Krčmář <rkrcmar@redhat.com>
Fri, 17 Jan 2014 19:52:42 +0000 (20:52 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Feb 2014 09:14:24 +0000 (10:14 +0100)
commitc978eb635adcf4f00c68a0d81ff2d127fad74901
treea7659fc58e6cc7d6a05be5c8c685fbed6091046b
parent935aaddb436fb1ad50c386e5be71f52946637adb
KVM: SVM: fix NMI window after iret

We should open NMI window right after an iret, but SVM exits before it.
We wanted to single step using the trap flag and then open it.
(or we could emulate the iret instead)
We don't do it since commit 9c87334d19b (likely), because the iret exit
handler does not request an event, so NMI window remains closed until
the next exit.

Fix this by making KVM_REQ_EVENT request in the iret handler.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c