]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: nVMX: Remove superfluous VMX instruction fault checks
authorJim Mattson <jmattson@google.com>
Wed, 26 Apr 2017 15:53:46 +0000 (08:53 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Apr 2017 15:05:43 +0000 (17:05 +0200)
commit0025faf79e9a21ccdba8f2ecc9f683e20bd5d267
tree30ce96719ddc7e97c7afeef0880437cc3be1b60c
parenteefd5dc3ecf870a8fa2097651a92307d32f90029
kvm: nVMX: Remove superfluous VMX instruction fault checks

According to the Intel SDM, "Certain exceptions have priority over VM
exits. These include invalid-opcode exceptions, faults based on
privilege level*, and general-protection exceptions that are based on
checking I/O permission bits in the task-state segment (TSS)."

There is no need to check for faulting conditions that the hardware
has already checked.

* These include faults generated by attempts to execute, in
  virtual-8086 mode, privileged instructions that are not recognized
  in that mode.

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