KVM: VMX: use kvm_fast_pio_in for handling IN I/O
authorSean Christopherson <sean.j.christopherson@intel.com>
Thu, 8 Mar 2018 16:57:26 +0000 (08:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Mar 2018 21:01:38 +0000 (22:01 +0100)
commit432baf60eee3dcacac94b8781464ab566abf0183
tree83baadab98c52c7fd5026a9619b8983b755e32c5
parent2bb8cafea80bf69c0e729bf1ad1bcd1d6c53248d
KVM: VMX: use kvm_fast_pio_in for handling IN I/O

Fast emulation of processor I/O for IN was disabled on x86 (both VMX
and SVM) some years ago due to a buggy implementation.  The addition
of kvm_fast_pio_in(), used by SVM, re-introduced (functional!) fast
emulation of IN.  Piggyback SVM's work and use kvm_fast_pio_in() on
VMX instead of performing full emulation of IN.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c