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)
commitf2485b3e0c6c0aa3a9546babc2fad3739e964ebb
tree07e778e8128e70ad5b38458686ed0cc0f3b87d98
parent91fa0f8e9e2937fd9360f326ad60d51908347afd
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