]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: use guest_exit_irqoff
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2016 13:23:11 +0000 (15:23 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Jul 2016 09:03:38 +0000 (11:03 +0200)
commit96b61884b310d8fd4f1b6c344cf0e61ebda2df9c
tree07e778e8128e70ad5b38458686ed0cc0f3b87d98
parent5235d2b8d1f12f51c5e12c09f03bee68c9c63e47
KVM: x86: use guest_exit_irqoff

This gains a few clock cycles per vmexit.  On Intel there is no need
anymore to enable the interrupts in vmx_handle_external_intr, since
we are using the "acknowledge interrupt on exit" feature.  AMD
needs to do that, and must be careful to avoid the interrupt shadow.

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