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)
commit70f3aac964ae2bc9a0a1d5d65a62e258591ade18
tree30ce96719ddc7e97c7afeef0880437cc3be1b60c
parent6ed071f051e12cf7baa1b69d3becb8f232fdfb7b
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