]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: suppress unnecessary NMI singlestep on GIF=0 and nested exit
authorLadi Prosek <lprosek@redhat.com>
Wed, 21 Jun 2017 07:07:01 +0000 (09:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jun 2017 14:35:43 +0000 (16:35 +0200)
commita411b09d06bffa97df55ceb5ee689c8b5171711b
tree0a805780d40800a2506b077a45320ff2846dc1ff
parentf3f42f4e02ee077ba1580bb0dbf092b122248987
KVM: SVM: suppress unnecessary NMI singlestep on GIF=0 and nested exit

enable_nmi_window is supposed to be a no-op if we know that we'll see
a VM exit by the time the NMI window opens. This commit adds two more
cases:

* We intercept stgi so we don't need to singlestep on GIF=0.

* We emulate nested vmexit so we don't need to singlestep when nested
  VM exit is required.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c